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
- 200
Successful response
- application/json
- Schema
- Example (auto)
Schema
outerProp1 object
outerProp2 object
{
"outerProp1": {
"innerProp1": "string"
},
"outerProp2": {
"innerProp2": 0
}
}
- python
- curl
- csharp
- go
- nodejs
- ruby
- php
- java
- powershell
- dart
- javascript
- c
- objective-c
- ocaml
- r
- swift
- kotlin
- rust
- HTTP.CLIENT
- REQUESTS
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"))