Skip to content

Commit

Permalink
fix(metadata): in xml resource extractor > building request body cont…
Browse files Browse the repository at this point in the history
…ent values (#5419)

Co-authored-by: Fabien Raynaud <[email protected]>
  • Loading branch information
fraynaud1330 and Fabien Raynaud authored Feb 28, 2023
1 parent ff3255c commit d1d139a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Metadata/Extractor/XmlResourceExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private function buildOpenapi(\SimpleXMLElement $resource): bool|OpenApiOperatio
}
$data['requestBody'] = isset($openapi->requestBody) ? new RequestBody(
description: $this->phpize($openapi->requestBody, 'description', 'string'),
content: isset($openapi->requestBody->content->values) ? new \ArrayObject($this->buildValues($openapi->requestBody->values)) : null,
content: isset($openapi->requestBody->content->values) ? new \ArrayObject($this->buildValues($openapi->requestBody->content->values)) : null,
required: $this->phpize($openapi->requestBody, 'required', 'bool'),
) : null;

Expand Down

0 comments on commit d1d139a

Please sign in to comment.