APIDevTools / swagger-parser

Swagger 2.0 and OpenAPI 3.0 parser/validator
https://apitools.dev/swagger-parser
MIT License
1.1k stars 155 forks source link

Add YAML property to Typescript definition file #123

Open jmtelljohann opened 5 years ago

jmtelljohann commented 5 years ago

We are creating our API spec using the following: SwaggerParser.YAML.stringify(apiSpec)

Since the YAML property isn't included in the Typescript definition file, we have to have the Typescript compiler ignore the definition file entirely to avoid a compile error.

It would be nice if the definition file exposed this property.