Skip to content

Snippet paths include server URL paths #76

@erunion

Description

@erunion

If a server URL includes a base like http://petstore.swagger.io/v1, snippets generated from it will include /v1:

const sdk = require('api')('https://example.com/openapi.json');
    
sdk.get('/v1/pets/petId')
  .then(res => res.json())
  .then(res => {
    console.log(res);
  });

This only a problem for operations that don't have an operation ID.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions