openapi: 3.1.0 info: version: 1.0.0-oas3.1 title: Nesting Test tags: - name: test description: just seeing what gets generated paths: /nestedMultipartObject: post: summary: endpoint which accepts a form message with nested objects. description: lets see what happens. operationId: multipartObject requestBody: required: true content: application/x-www-form-urlencoded: schema: type: object $ref: '#/components/schemas/multipartObject' encoding: dimensionJson: explode: false dimensionJsonExplicit: explode: false contentType: application/json dimensionDeep: explode: false style: deepObject responses: '200': description: Successful operation content: text/plain: schema: type: string tags: - main components: schemas: Dimensions: type: object properties: w: type: integer h: type: integer required: - w - h multipartObject: type: object properties: dimensionFlat: $ref: '#/components/schemas/Dimensions' dimensionJson: $ref: '#/components/schemas/Dimensions' dimensionJsonExplicit: $ref: '#/components/schemas/Dimensions' dimensionDeep: $ref: '#/components/schemas/Dimensions' name: type: string isThisWorking: type: boolean