swagger-parser
swagger-parser copied to clipboard
Swagger Parser validation failed when the content contains ./
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
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