I am working on a toy problem for work with the swift-openapi-generator. I have recently encountered an error where it no longer builds. After some investigation on this issue apple/swift-openapi-generator#746 I was able to narrow it down to this PR #428 for 5.3.0.
When I attempt to build on 5.3.0 I get this message
Error: /Users/alteredtech/Coding/swift-petstore-oas/Sources/openapi.yaml: error: Found neither a $ref nor a Response in .responses.200 for the **PUT** endpoint under `/pet`.
Response could not be decoded because:
Inconsistency encountered when parsing `Vendor Extension`: Found at least one vendor extension property that does not begin with the required 'x-' prefix. Invalid properties: [ yamlAnchor ]..
However, on 5.1.3 and 5.2.0 I do not and the build is successful.
My working commit example: https://github.com/Altered-Tech/swift-petstore-oas/tree/yaml-anchors
My breaking commit example: https://github.com/Altered-Tech/swift-petstore-oas/tree/yaml-anchors-fails
I am working on a toy problem for work with the swift-openapi-generator. I have recently encountered an error where it no longer builds. After some investigation on this issue apple/swift-openapi-generator#746 I was able to narrow it down to this PR #428 for
5.3.0.When I attempt to build on
5.3.0I get this messageHowever, on
5.1.3and5.2.0I do not and the build is successful.My working commit example: https://github.com/Altered-Tech/swift-petstore-oas/tree/yaml-anchors
My breaking commit example: https://github.com/Altered-Tech/swift-petstore-oas/tree/yaml-anchors-fails