cncspec is a language for specifying the domain of a Click & Code App.
This extension provides syntax highlighting and validation of specs.
Example
service BlogService {
schema Author {
name:String!
// A relation from author to their posts through the autorId field
posts(authorId): [Post]
}
schema Post {
text:String!
authorId:RefID!
// A relation from post to its author through the authorId field
author(authorId): Author
}
}
// Give everyone permission to read Authors and Posts
allow ALL {
Author {
read
}
Post {
read
}
}
// Grant admins full rights to everything
allow admin
allow editor {
Post {
update
delete
}
}