ketting icon indicating copy to clipboard operation
ketting copied to clipboard

Resolution from `baseUrl` may comply to OAS spec ?

Open remidewitte opened this issue 2 years ago • 0 comments

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 ?

remidewitte avatar Aug 28 '23 19:08 remidewitte