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

Need a way to better express named type derivations #72

Open
cmars opened this issue Nov 19, 2021 · 0 comments
Open

Need a way to better express named type derivations #72

cmars opened this issue Nov 19, 2021 · 0 comments

Comments

@cmars
Copy link
Contributor

cmars commented Nov 19, 2021

Need a way to define a type derivation that conveys a constraint or format.

Don't want to use custom format: with type: string because this requires too much coordination among systems that will need to interpret the formats in the same way.

pattern: is better, and precisely defines constraints, but is fugly in generated documentation.

What we want is pattern: with a "type derivation name" for the constraint that can be displayed in documentation (this is a URL / version string / cursor / etc) in terms a user will understand.

Will likely require a bit of OpenAPI extension to express.

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

No branches or pull requests

1 participant