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 Documentation: improve type parsing #4146

Open
splitbrain opened this issue Jan 12, 2024 · 0 comments
Open

OpenAPI Documentation: improve type parsing #4146

splitbrain opened this issue Jan 12, 2024 · 0 comments

Comments

@splitbrain
Copy link
Collaborator

Type parsing currently does not support multiple types like int|bool nor does it support a way to define a typed associative array. Eg. an API that returns a structue of array("key1" => Page, "otherkey" => Page) where Page is one of our APIResponse objects can not be defined as a typehint currently.

It should be explored how to add these features to the doc block parsers and integrate the resulting structures into the generated OpenAPI spec.

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