Closed mwhicks1 closed 1 year ago
Thanks for the feedback, Mike! I fixed this in the source and updated the build.
Looks like the final schema example is still incorrect? It refers to actions
using name: ...
rather than just by the name labeling the entry.
Whoops! I did forget to update that! Thanks for catching it! It's now fixed.
https://docs.cedarpolicy.com/schema.html#actions shows how actions are described. I see a few bugs:
entityTypes
but it should be headed byactions
name
but there is no such element in the example -- the name is just the heading for action itself. I.e., instead of"name" : "myaction",
we just have"myaction": { ...
. This mostly comes out in the examples that follow, but the one at the bottom, involvingcontext
, does have a separatename
element, which I believe is wrong.The schema example at the very end of the schema section has various mistakes. In particular, the use of
memberOf
inentityTypes
should bememberOfTypes
instead. It also hasname
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).