cedar-policy / cedar-docs

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

[Cedar Doc Issue] #20

Closed bisdavid closed 1 year ago

bisdavid commented 1 year ago

Aneel Nazareth 19 days ago In this thread, it was mentioned that you can remove the name for a namespace: https://cedar-policy.slack.com/archives/C0547KH7R19/p1684969772189729?thread_ts=1684968294.619939&cid=C0547KH7R19 Does that merit a mention here? https://docs.cedarpolicy.com/schema.html#namespace

Andrew Wells Works for me if I remove the namespace “Cloud” at the top of the schema. If you intended to use that namespace, you need to qualify the type names. E.g., "uid": { "type": "Cloud::User", "id": "bob" },

bisdavid commented 1 year ago

Added an additional statement to the schema section to indicate that you can delete a namespace from the schema, but that you must then also remove the namespace from all references to that schema.