Hi,
L5-Swagger pointed me to this repository, as swagger-php is responsible for
parsing OpenAPI annotations.
When using OpenAPI 3.1, JSON Schema keywords such as if/then/else and
dependentRequired don’t seem to be supported or preserved in the generated
spec. I couldn’t find any mention of these keywords in the codebase or docs.
Since OpenAPI 3.1 is based on JSON Schema Draft 2020-12, adding support for these
keywords would improve spec compliance.
Is it possible to add support for these keywords via annotations/attributes?
If so, I’d be happy to contribute a PR or discuss the best way to implement it.
Thanks!
Hi,
L5-Swagger pointed me to this repository, as swagger-php is responsible for
parsing OpenAPI annotations.
When using OpenAPI 3.1, JSON Schema keywords such as
if/then/elseanddependentRequireddon’t seem to be supported or preserved in the generatedspec. I couldn’t find any mention of these keywords in the codebase or docs.
Since OpenAPI 3.1 is based on JSON Schema Draft 2020-12, adding support for these
keywords would improve spec compliance.
Is it possible to add support for these keywords via annotations/attributes?
If so, I’d be happy to contribute a PR or discuss the best way to implement it.
Thanks!