Skip to content
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

Resolution from baseUrl may comply to OAS spec ? #480

Open
remidewitte opened this issue Aug 28, 2023 · 0 comments
Open

Resolution from baseUrl may comply to OAS spec ? #480

remidewitte opened this issue Aug 28, 2023 · 0 comments

Comments

@remidewitte
Copy link

remidewitte commented Aug 28, 2023

From OAS 3.1 spec :

The path is appended (no relative URL resolution) to the expanded URL from the Server Object’s url field in order to construct the full URL

Which is not the way ketting implements it since it uses URL resolution.

Exemple :

const client = new Client('https://domain.com/api');
client.go('/projects/d123');
// Will go to https://domain.com/projects/d123
// According to OAS, should go to : https://domain.com/api/projects/d123

What to you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant