openapi: 3.0.3
info:
  description: Title
  title: Title
  version: 1.0.0
servers:
- url: https
paths:
  /user:
    get:
      responses:
        "200":
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReadonlyAndRequiredProperties'
          description: success
      x-accepts: application/json
components:
  schemas:
    ReadonlyAndRequiredProperties:
      example:
        requiredYesReadonlyYes: requiredYesReadonlyYes
        requiredNoReadonlyYes: requiredNoReadonlyYes
        requiredYesReadonlyNo: requiredYesReadonlyNo
        requiredNoReadonlyNo: requiredNoReadonlyNo
      properties:
        requiredYesReadonlyYes:
          readOnly: true
          type: string
        requiredYesReadonlyNo:
          type: string
        requiredNoReadonlyYes:
          readOnly: true
          type: string
        requiredNoReadonlyNo:
          type: string
      required:
      - requiredYesReadonlyNo
      - requiredYesReadonlyYes
      type: object
