Skip to main content

Object with typed additionalProperties

GET 

/with-typed-additional

This endpoint returns an object where additional properties are restricted to a specific type.

Schema:

type: object
properties:
fixedProp:
type: string
additionalProperties:
type: string
example:
fixedProp: "fixedValue"
dynamicProp: "dynamicValue"

Responses

Successful response

Schema
    fixedPropstring
    property name*string
import http.client

conn = http.client.HTTPSConnection("docusaurus-openapi-36b86--pr1117-8f02miao.web.app")
payload = ''
headers = {
'Accept': 'application/json'
}
conn.request("GET", "/with-typed-additional", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))