Skip to content

fix(openapi): nullable default values in operation openapi definition #7318

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

Closed
wants to merge 6 commits into from

Conversation

MrSrsen
Copy link

@MrSrsen MrSrsen commented Jul 27, 2025

Q A
Branch 4.1
Tickets #6553
License MIT
Doc PR none

Description:

  • At this moment, when I do not explicitly define parameters such as: deprecated, allowEmptyValue, explode and allowReserved process will fail on exception like ApiPlatform\OpenApi\Model\Parameter::__construct(): Argument #3 ($description) must be of type string, null given, called in /var/www/vendor/api-platform/core/src/Metadata/Extractor/XmlResourceExtractor.php on line 215
  • This will allow omission of optional parameters in XML definition

@MrSrsen MrSrsen changed the title 4.1 fix(openapi): nullable default values in operation openapi definition Jul 27, 2025
@soyuka
Copy link
Member

soyuka commented Jul 29, 2025

thanks! #7321

@soyuka soyuka closed this Jul 29, 2025
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.

2 participants