Closed podhmo closed 4 years ago
currently,
from swagger_marshmallow_codegen.schema import AdditionalPropertiesSchema
class Person(Schema):
name = fields.String()
x_data = fields.Nested(lambda: PersonX_data, data_key='x-data')
class PersonX_data(AdditionalPropertiesSchema):
class Meta:
additional_field = fields.String()
But, schema with properties, current implementation is correct answer.
(using Meta.unknown, additionalPropeties:true, current marshmallow not support validation for unknown field)