-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converted JSON schemas use "EntityOrCommon" #1161
Comments
some context: in some ways, To resolve this issue, we would have to actually resolve the typenames in the Cedar syntax (e.g., to know that |
I attempted to add a common type with
On the other hand, I am able to create an Entity with the name
My own personal issue with using |
If you want to use your schema with AVP, it should work if you convert the schema with the latest 3.x CLI release. This release won't insert |
Describe the improvement you'd like to request
Due to recent changes introduced on
main
(which are currently unreleased, but will be released as part of 4.0), converting a Cedar schema to JSON will now introduce "EntityOrCommon" types. These seems like an internal detail that is not useful to expose to users. Is there a way to hide this detail when returning JSON data fromSchemaFragment::to_json_string
?As an example, here's a snippet from the translation of the TinyTodo schema:
The more natural way for a user to write this would be:
Describe alternatives you've considered
No response
Additional context
Related: the
Display
trait for the Cedar schema format is also not as pretty as it could be. See #682.Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: