Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linode has non-standard discriminator #1250

Open
floitsch opened this issue Apr 14, 2024 · 0 comments
Open

linode has non-standard discriminator #1250

floitsch opened this issue Apr 14, 2024 · 0 comments

Comments

@floitsch
Copy link

The discriminator in the linode spec seems to be non-standard:

x-linode-ref-name: Stats Available

                    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant