Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

ValueError: swagger.yaml is not a valid swagger2.0 file: expected string or buffer #56

@ptman

Description

@ptman

I'm trying to parse a swagger file:

from swagger_parser import SwaggerParser
p = SwaggerParser(swagger_path='swagger.yaml')

The same file is valid in editor.swagger.io and http://bigstickcarpet.com/swagger-parser/www/index.html

I'd like at least a line number or similar to better understand the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions