Created
June 20, 2022 12:53
-
-
Save ponelat/deb303a4cc3764fb2d942b9d7175955c to your computer and use it in GitHub Desktop.
oneOf rule false positive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asyncapi: '2.4.0' | |
info: | |
title: oneOf error | |
version: '1.0.0' | |
description: | | |
Weird oneOf error. Even though definition is good. | |
channels: {} | |
components: | |
schemas: | |
One: | |
type: string | |
example: 'one' | |
Two: | |
type: string | |
example: 'two' | |
Three: | |
oneOf: | |
- $ref: '#/components/schemas/One' | |
- $ref: '#/components/schemas/Two' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment