Skip to content

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

Closed
MrSrsen wants to merge 6 commits into
api-platform:4.1from
MrSrsen:4.1
Closed

fix(openapi): nullable default values in operation openapi definition#7318
MrSrsen wants to merge 6 commits into
api-platform:4.1from
MrSrsen:4.1

Conversation

@MrSrsen

@MrSrsen MrSrsen commented Jul 27, 2025

Copy link
Copy Markdown
Contributor
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 base branch from main to 4.1 July 27, 2025 10:30
@MrSrsen MrSrsen changed the title 4.1 fix(openapi): nullable default values in operation openapi definition Jul 27, 2025
Comment thread CHANGELOG.md Outdated
Comment thread src/Metadata/Extractor/XmlResourceExtractor.php Outdated
Comment thread src/Metadata/Extractor/XmlResourceExtractor.php Outdated
@soyuka

soyuka commented Jul 29, 2025

Copy link
Copy Markdown
Member

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