Add tests for anyof with discriminator (#19021)

* add tests for anyof with discriminator

* remove test

* update samples
This commit is contained in:
William Cheng
2024-06-26 16:00:58 +08:00
committed by GitHub
parent 6b9d95be89
commit 0c4bfe3ffe
23 changed files with 1397 additions and 47 deletions

View File

@@ -2059,6 +2059,13 @@ components:
- $ref: '#/components/schemas/whale'
- $ref: '#/components/schemas/zebra'
- $ref: '#/components/schemas/Pig'
mammal_anyof:
anyOf:
- $ref: '#/components/schemas/whale'
- $ref: '#/components/schemas/zebra'
- $ref: '#/components/schemas/Pig'
discriminator:
propertyName: className
whale:
properties:
hasBaleen: