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

fix(metadata): wrong schema generated if openapicontext set on array #6431

Merged

Conversation

monitaurus
Copy link
Contributor

Q A
Branch? 3.2
Tickets Closes #6391
License MIT
Doc PR none

On a calculated field that returns an array, if we add a ApiProperty to change the type into object, the generated OpenAPI does generate a "type": "object" but there is also an extra "items": {"type": "string"}.

@monitaurus
Copy link
Contributor Author

I don't know if they're needed, but I created new test to cover this bug resolution.

@monitaurus monitaurus force-pushed the fix-metadata-custom-openapicontext branch from e953cc9 to a1141bb Compare June 15, 2024 13:26
@monitaurus monitaurus force-pushed the fix-metadata-custom-openapicontext branch from a1141bb to d57eab4 Compare June 15, 2024 13:30
@monitaurus
Copy link
Contributor Author

There's three failing checks, unfortunately I don't know how to fix them, nor if they're linked to this PR.

@monitaurus monitaurus marked this pull request as ready for review June 15, 2024 13:43
@soyuka soyuka merged commit 0ed1b63 into api-platform:3.2 Jun 27, 2024
53 of 56 checks passed
@soyuka
Copy link
Member

soyuka commented Jun 27, 2024

looks perfect, thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants