Skip to main content

Multiple allOf with Nested Properties

GET 

/multiple-allof-nested

Schema:

allOf:
- type: object
properties:
outerProp1:
type: object
properties:
innerProp1:
type: string
- type: object
properties:
outerProp2:
type: object
properties:
innerProp2:
type: number

Responses

Successful response

Schema
    outerProp1 object
    innerProp1string
    outerProp2 object
    innerProp2number
import http.client

conn = http.client.HTTPSConnection("docusaurus-openapi.tryingpan.dev")
payload = ''
headers = {
'Accept': 'application/json'
}
conn.request("GET", "/multiple-allof-nested", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))