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

isNullable in OpenApiSchemaProperty not working #557

Closed
marcdebus opened this issue Sep 30, 2024 · 2 comments · Fixed by #560
Closed

isNullable in OpenApiSchemaProperty not working #557

marcdebus opened this issue Sep 30, 2024 · 2 comments · Fixed by #560
Labels
bug Something isn't working

Comments

@marcdebus
Copy link

marcdebus commented Sep 30, 2024

I defined a property for a datetime value in the entity as nullable, but it didn't work:

#[OpenApiSchemaProperty(name: 'deleted', type: 'string', format: 'date-time', isNullable: true, isReadOnly: true)]
class MyEntity extends Entity {

..

Generated output in swagger.json:

"deleted": {
                        "type": "string",
                        "format": "date-time",
                        "readOnly": true
                    }

Swagger Bake Version 2.5.9

@cnizzardini
Copy link
Owner

Can you provide version information for php and cakephp?

@marcdebus
Copy link
Author

Version 2.5.9 and CakePHP 4.5.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants