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:
                data:
                  type: object
                  if:
                    properties:
                      kind:
                        type: string
                        const: typeB
                  then:
                    properties:
                      value:
                        type: integer
                        minimum: 5
                  else:
                    properties:
                      value:
                        type: string
                        minLength: 3
                  contains:
                    type: string
                    minLength: 3
                  prefixItems:
                    - type: string
                      minLength: 3
                  propertyNames:
                    type: string
                    minLength: 3
                  unevaluatedItems:
                    type: string
                    minLength: 3
                  unevaluatedProperties:
                    type: string
                    minLength: 3
                  contentSchema:
                    type: string
                    minLength: 3
      responses:
        "200":
          description: OK
