mattpolzin / OpenAPIKit

Codable Swift OpenAPI implementation.
MIT License
280 stars 35 forks source link

Add an option to disable vendor extensions #244

Closed kean closed 2 years ago

kean commented 2 years ago

I know it's not pretty, but it gets the job done.

My measurements (Release Mode, Yams, GitHub spec with 75K lines):

Before: Parse spec completed (2.507 s) After: Parse spec completed (0.793 s)

That's more than three times faster!

It's not ideal to have to disable it manually every time. I'm thinking, is there a way to detect upfront whether extensions are needed? I wish spec had some metadata.