Skip to content
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

How to access enum types? #51

Closed
jessicamcinchak opened this issue Oct 11, 2023 · 2 comments
Closed

How to access enum types? #51

jessicamcinchak opened this issue Oct 11, 2023 · 2 comments

Comments

@jessicamcinchak
Copy link
Member

jessicamcinchak commented Oct 11, 2023

Currently, we're encoding some very long enum types directly into the schema - see definitions for "ProjectType" & "PropertyType" as examples.

Open questions:

  • As consumers of the schema, is it useful to have these directly encoded in the single JSON Schema doc for reference / to do lookups against?
  • Would it be easier to access via another query to an external service? What are central, open hosting options?
  • What are maintance considerations of either approach when values & descriptions need to be updated?
@jessicamcinchak
Copy link
Member Author

See these examples for how we're accessing enums within Planx editor to do flow validation on publish:

@jessicamcinchak
Copy link
Member Author

Closing this for now as this hasn't come up in external feedback & would be slightly addressed by a public validation endpoint #116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant