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

OpenAPI to expose attribute max length and whether a property is required #542

Open
andrus opened this issue Apr 2, 2022 · 2 comments
Open

Comments

@andrus
Copy link
Contributor

andrus commented Apr 2, 2022

Let's add extra pieces of information to Agrest OpenAPI integration (and presumably, the underlying Ag model):

  • Whether the property is required (OpenAPI schema.maxLength for Strings)
  • Max length of the attribute (OpenAPI schema.required)
@alevshunov
Copy link

We have noticed that openapi lost the attribute format="time" for type="string" where db time of a field is a time.

@andrus
Copy link
Contributor Author

andrus commented Apr 26, 2022

@alevshunov I just opened a separate task. Seems like an easy fix.

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

2 participants