postmanlabs / openapi-to-postman

Plugin for converting OpenAPI 3.0 specs to the Postman Collection (v2) format
Apache License 2.0
930 stars 200 forks source link

Fixed an issue where definition validation was not considering multiple white space characters. #721

Closed VShingala closed 1 year ago

VShingala commented 1 year ago

Overview

This PR fixes issue where having extra spaces between openapi or swagger and version field was considered an incorrect definition.

We'll now be accepting zero or more of a any white space before and after : to determine spec versions.

See all added test cases to see more different scenarios.