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(OpenApiType): Use correct default values for empty object types #150

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

provokateurin
Copy link
Member

Fixes #147

Classic case of PHP array handling again... If the array value is empty it is always converted to [] in JSON while it should be {} in case the type is something like array<string, string>.

@provokateurin provokateurin force-pushed the fix/openapitype/default-object-values branch from 5e57a7a to 462c706 Compare August 5, 2024 13:38
@provokateurin provokateurin changed the title fix(OpenApiType): Use correct default values for object types fix(OpenApiType): Use correct default values for empty object types Aug 5, 2024
@provokateurin provokateurin force-pushed the fix/openapitype/default-object-values branch from 462c706 to 46b1cf0 Compare August 5, 2024 13:41
@provokateurin provokateurin merged commit cdfedf4 into main Aug 5, 2024
12 checks passed
@provokateurin provokateurin deleted the fix/openapitype/default-object-values branch August 5, 2024 15:03
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.

PHP default value [] should be translated to JSON {} if type: object
2 participants