scalar / openapi-parser

Modern OpenAPI parser written in TypeScript
MIT License
34 stars 1 forks source link

fix(#31): set default version temporarily #27

Closed amritk closed 6 months ago

amritk commented 6 months ago

The previous parser never used to throw on missing info.version, however this one does. The spec DOES say info.version is required but we should bubble this error up and display it + continue to render the spec as it should not be blocking.

This PR is a very temp hot fix to get this parser to match the previous one's behavior. We should follow up and add a proper non-blocking, error bubbling strategy (if one does not exist).

closes #21