openapi-directory icon indicating copy to clipboard operation
openapi-directory copied to clipboard

linode has non-standard discriminator

Open floitsch opened this issue 1 year ago • 0 comments

The discriminator in the linode spec seems to be non-standard: https://github.com/APIs-guru/openapi-directory/blob/433a94f3e9e268f2b000b0b497785ede34332a7f/APIs/linode.com/4.151.1/openapi.yaml#L12577

                    discriminator:
                      propertyName: x-linode-ref-name
                    oneOf:
                      - $ref: "#/components/schemas/StatsDataAvailable"
                        x-linode-ref-name: Stats Available
                      - $ref: "#/components/schemas/StatsDataUnavailable"
                        x-linode-ref-name: Stats Unavailable

I'm assuming this section means that the StatsDataAvailable schema is chosen if the x-linode-ref-name property is set to "Stats Available". However, the openapi specification doesn't support this construct.

Should this be changed into a mapping?

floitsch avatar Apr 14 '24 20:04 floitsch