-
Notifications
You must be signed in to change notification settings - Fork 8
tokenUrl
is not supporting relative urls
#178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Mark, thanks for asking.
So far so good, Unfortunately the OpenAPI specification writers have translated the AJV does the right thing and treats So to cut a long story short: the proper place to fix this (and other) schema specification errors is in my view at the OAS Specification repository. Monkey patching these schema's in Hope this helps. Kind regards, |
@seriousme Thanks so much for the quick response. I will file an issue with OAI and see what they might have to add to the conversation. I appreciate the time you spent reviewing the issue, sorry I didn't catch that the project consumes the schema. |
@markrzen |
FYI: I just released version 2.4.0 which contains the OpenAPI schema 2025-02-13 that emerged this week |
Thanks @seriousme! |
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 thanuri-reference
.My understanding is that the AJV
uri
is an absolute URL, and that to have either absolute or relative, you must useuri-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.
The text was updated successfully, but these errors were encountered: