Skip to content

Instantly share code, notes, and snippets.

@ponelat
Created June 20, 2022 12:53
Show Gist options
  • Save ponelat/deb303a4cc3764fb2d942b9d7175955c to your computer and use it in GitHub Desktop.
Save ponelat/deb303a4cc3764fb2d942b9d7175955c to your computer and use it in GitHub Desktop.
oneOf rule false positive
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