thim81 / openapi-format

Format an OpenAPI document by ordering, formatting and filtering fields.
MIT License
77 stars 14 forks source link

Don't throw if `name` doesn't exist #94

Closed SferaDev closed 6 months ago

SferaDev commented 6 months ago

After updating to 1.15.0, we saw some failures due to name property not existing and sorting failing.

thim81 commented 6 months ago

Thanks @SferaDev for making the function safer with your PR.

I'll add a test afterwards to guard the function in the future.

thim81 commented 6 months ago

FYI @SferaDev, I just released 1.15.1 of openapi-format which contains your bugfix. Thanks for taking the time to improve openapi-format, much appreciated.