Skip to content

Implement some of the OpenAPI resolution logic #10

@gampleman

Description

@gampleman

OpenAPI spec defines a specific order of how various options are resolved. For instance, if you want to figure out which servers a specific operation is allowed on, than you first check if there are servers defined on the operation, then on the path and finally on the top level.

I think security works in a similar way (albeit there is also a gotcha where if the security object is declared but empty, it means "no security" rather than just inheriting it).

It would be quite neat if the package could do this sort of resolution logic without consumers having to implement it themselves (this would also save on having to read the spec AND having to understand how this package works alongside #8).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions