Given the following:
class ParentSchema(Schema):
id = fields.Int(dump_only=True)
name = fields.String()
child = fields.Nested('ChildSchema')
class ChildSchema(Schema):
id = fields.Int(dump_only=True)
name = fields.String()
The parameter spec is generated:
"parameters": [
{
"in": "body",
"name": "body",
"required": false,
"schema": {
"properties": {
"child": {
"properties": {
"id": {
"format": "int32",
"type": "integer"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"name": {
"type": "string"
}
},
"type": "object"
}
}
]
The Parent "id" is omitted but the Child "id" remains.
Will submit a PR on this.
Given the following:
The parameter spec is generated:
The Parent "id" is omitted but the Child "id" remains.
Will submit a PR on this.