Skip to content

Merge apiKey-as-parameter info into security #69

@jonthegeek

Description

@jonthegeek

In at least one case (https://api.apis.guru/v2/specs/fec.gov/1.0/openapi.yaml), every path has an api_key parameter, which overlaps with the apiKey security scheme (which is defined as being in the query so it overlaps conceptually, too). The path versions give a default value, which seems reasonable.

Add default values to api_key security schemes (as an optional field which isn't possible to fill directly from the APID). After building the initial APID (which must include path parameters before this will make sense), merge info from overlapping parameters into the api_key specification.

By here (if not before) as_rapid() should call a function that does "clean up" work like this + the base_url stuff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions