mattpolzin / OpenAPIKit

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

Add 'warnings as errors' option to validation #243

Closed mattpolzin closed 2 years ago

mattpolzin commented 2 years ago

In OpenAPIKit 3.0.0 there will be a concept of warnings exposed via the validation system and by default these will be returned from OpenAPI.Document.validate() but there should also be a boolean flag to the validate() function that causes these warnings to throw just like errors do so that validation can be done in a "strict" mode.