swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

Swagger Parser validation failed when the content contains ./

Open HiranyaKavishani opened this issue 5 years ago • 1 comments

Description

When [1] is parsing through swagger-parser, it has been failed due to ./ which is in url: ./LICENSE

Eg:

  license:
    name: MIT
    url: ./LICENSE
  title: Brain Web API
  version: v2.17.0

version

swagger-parser-v2.0.20

[1] https://github.com/APIs-guru/openapi-directory/blob/master/APIs/intellifi.nl/v2.17.0/openapi.yaml

HiranyaKavishani avatar Sep 16 '20 09:09 HiranyaKavishani

please check the specification. The specification explicitly says the url must be "A URL to the license used for the API. MUST be in the format of a URL." https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#license-object

r-sreesaran avatar Dec 09 '20 17:12 r-sreesaran