Freeform subobject in json-schema

type: object without properties describes a free-form object. So the response schema can be:

type: object
properties:
    original:
        type: object    # <----------
    processed:
        type: object
        properties:
            stdFieldA:
                type: string
            stdFieldB:
                type: string

Leave a Comment