-
-
Notifications
You must be signed in to change notification settings - Fork 895
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
Decorating api_platform.json_schema.type_factory
does not work in 3.2
#5896
Labels
Comments
Mhh it's a bug due to the #5470 feature I'll investigate thanks. |
soyuka
added a commit
to soyuka/core
that referenced
this issue
Oct 18, 2023
soyuka
added a commit
to soyuka/core
that referenced
this issue
Oct 19, 2023
soyuka
added a commit
to soyuka/core
that referenced
this issue
Oct 19, 2023
soyuka
added a commit
to soyuka/core
that referenced
this issue
Oct 19, 2023
soyuka
added a commit
that referenced
this issue
Oct 23, 2023
will be tagged tomorrow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
API Platform version(s) affected: 3.2.1
Description
In 3.1 decorating the service
api_platform.json_schema.type_factory
works for customising the json schema type for a custom userland class.How to reproduce
Here, I decorate the type factory to add support for using Brick\DateTime\LocalDate as a
date
in 3.1, the schemas are correct:
in 3.2, they are not:
![image](https://private-user-images.githubusercontent.com/625392/276257904-0eb523c1-2d08-41d6-89eb-491e0991b4ef.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0OTgxNzYsIm5iZiI6MTczOTQ5Nzg3NiwicGF0aCI6Ii82MjUzOTIvMjc2MjU3OTA0LTBlYjUyM2MxLTJkMDgtNDFkNi04OWViLTQ5MWUwOTkxYjRlZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQwMTUxMTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02M2RkYmE1YjU1MmQ3NDc4NjJkNzA2OTMyYTJkNTZlMWMzOTMwMWZkYzhkNzFiNzM2OGM3MmQ3YTVlZmFiMzBkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.rzDN01rRdOexKX8X-SViTeE7IxhFaasH0wplzLr9ti8)
Possible Solution
Unsure, tried to figure it out but failed.
Additional Context
The text was updated successfully, but these errors were encountered: