Skip to content

OpenAPI 3.1: Missing annotation / attribute support for if/then/else and dependentRequired #1927

@MuhammedParlak

Description

@MuhammedParlak

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions