erunion / sport-api-specifications

OpenAPI 3.0 specifications for various sport APIs.
101 stars 27 forks source link

Remove siblings of $ref #8

Closed matthew-jack closed 4 years ago

matthew-jack commented 4 years ago

Per the OpenAPI 3 spec, reference objects cannot have siblings (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#referenceObject) The Python openapi3 library was throwing errors when trying to parse. Less strict parsers will just ignore this but it was a little tough to track down.