You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v4.25.0 we have the issue that we can no longer declare default values in a Property definition when this value differs from the value declared in code.
As an example we have this code in a larger codebase:
if (Generator::UNDEFINED !== $property->type || Generator::UNDEFINED !== $property->ref) {
continue;
}
everything works as expected as we were used to in version v4.24.1
The problem that we have is that we are using this package to create an API documentation for a legacy code-base where a lot of such quirks are necessary to declare the values that will be set from a user-perspective.
As far as I understood the code and the general working so far an explicitly manually set value of a property should always overwrite any inflected value from code-analysis.
Am I wrong in this assumption? Or has this changed?
JSON OpenApi
See above
Additional context
No response
The text was updated successfully, but these errors were encountered:
As far as I understood the code and the general working so far an explicitly manually set value of a property should always overwrite any inflected value from code-analysis.
You are correct explicitly set values should always have priority.
Version
4.25.0
Description
Since v4.25.0 we have the issue that we can no longer declare default values in a Property definition when this value differs from the value declared in code.
As an example we have this code in a larger codebase:
When running
bin/console nelmio:apidoc:dump
this results inWith version v4.24.1 everything works as expected and we get the expected OpenAPI output.
When I move the code
NelmioApiDocBundle/src/ModelDescriber/ObjectModelDescriber.php
Lines 157 to 162 in 12a0ff1
NelmioApiDocBundle/src/ModelDescriber/ObjectModelDescriber.php
Lines 173 to 176 in 12a0ff1
The problem that we have is that we are using this package to create an API documentation for a legacy code-base where a lot of such quirks are necessary to declare the values that will be set from a user-perspective.
As far as I understood the code and the general working so far an explicitly manually set value of a property should always overwrite any inflected value from code-analysis.
Am I wrong in this assumption? Or has this changed?
JSON OpenApi
See above
Additional context
No response
The text was updated successfully, but these errors were encountered: