Skip to content

tokenUrl is not supporting relative urls #178

@markrzen

Description

@markrzen

Foremost, thank you so much for a fantastic set of libraries. I am filing this issue to see if you would be willing to either accept a PR on the subject.

It appears the fixed fields (e.g. clientCredentials.tokenUrl) have been modeled in this repositories schemas as AJV format uri, rather than uri-reference.

My understanding is that the AJV uri is an absolute URL, and that to have either absolute or relative, you must use uri-reference.

This results in relative urls in the tokenUrl to be required as absolute URLs, rather than allowing them to be relative (then formed into absolute using the servers object for their base).

More information about relative URLs being support unless explicitly declared invalid:
https://spec.openapis.org/oas/v3.1.1#relative-references-in-api-urls

Sorry in advance if I missed something here. I am hoping to avoid having to have multiple openapi schemas, as we have multiple environment-based oauth endpoints.

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