/
issue542.yml
43 lines (41 loc) · 1006 Bytes
/
issue542.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: http://petstore.swagger.io/v1
paths: {}
#paths:
# /pets:
# patch:
# requestBody:
# content:
# application/json:
# schema:
# oneOf:
# - $ref: '#/components/schemas/Cat'
# - $ref: '#/components/schemas/Kitten'
# discriminator:
# propertyName: pet_type
# responses:
# '200':
# description: Updated
components:
schemas:
Cat:
anyOf:
- $ref: "#/components/schemas/Kitten"
- type: object
# properties:
# hunts:
# type: boolean
# age:
# type: integer
# offspring:
Kitten:
$ref: "#/components/schemas/Cat" #ko
# type: string #ok
# allOf: #ko
# - $ref: '#/components/schemas/Cat'