apicollective / apibuilder

Simple, Comprehensive Tooling for Modern APIs
https://www.apibuilder.io/
MIT License
562 stars 82 forks source link

Update spec for response code to be a string per common usage #938

Closed mbryzek closed 1 month ago

mbryzek commented 1 month ago

We are now seeing validation errors requiring the format of response code to be an object:

"value": 200

This is related to undocumented behavior for non discriminated union types spanning primitive types and defined models. Update the service spec to document the response code as a string - we continue to validate proper integer or the keyword "default".