Skip to content

bug - when there is a broke reference in swagger, the builder does not throw error #72

@manorlh

Description

@manorlh

recover by

add reference that does not exist in the swagger


const basePaths = dereferenced.servers && dereferenced.servers.length
        ? dereferenced.servers.map(({ url }) => new URL(url).pathname)
        : [dereferenced.basePath || '/'];

    Object.keys(dereferenced.paths).forEach(currentPath => {


dereferenced variable content will have the error details, so dereferenced.paths will be undefined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions