openapi: 3.1.0
info:
  title: Sample API
  version: 1.0.0
paths:
  /products:
    post:
      operationId: createProduct
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: object
                  properties:
                    street:
                      type: string
                    city:
                      type: string
                    zip:
                      type: string
                  dependentRequired:
                    street:
                      - city
                      - zip
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  address:
                    type: object
                    properties:
                      street:
                        type: string
                      city:
                        type: string
                      zip:
                        type: string
                    dependentRequired:
                      street:
                        - city
                        - zip
