cedar-policy / cedar-docs

Documentation for Cedar policy language
https://docs.cedarpolicy.com
Apache License 2.0
24 stars 23 forks source link

bugs schema description #1

Closed mwhicks1 closed 1 year ago

mwhicks1 commented 1 year ago

https://docs.cedarpolicy.com/schema.html#actions shows how actions are described. I see a few bugs:

The schema example at the very end of the schema section has various mistakes. In particular, the use of memberOf in entityTypes should be memberOfTypes instead. It also has name for actions.

You might look at the example schema for TinyTodo for a complete working example with most of the elements in your description (it's missing the context parts).

bisdavid commented 1 year ago

Thanks for the feedback, Mike! I fixed this in the source and updated the build.

mwhicks1 commented 1 year ago

Looks like the final schema example is still incorrect? It refers to actions using name: ... rather than just by the name labeling the entry.

bisdavid commented 1 year ago

Whoops! I did forget to update that! Thanks for catching it! It's now fixed.