openapi: 3.0.1
info:
  version: 1.0.0
  title: Example
  license:
    name: MIT
servers:
  - url: http://api.example.xyz/v1
paths:
  /test:
    post:
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Request'
      responses:
        '200':
          description: responses
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
components:
  schemas:
    Request:
      type: object
      properties:
        customerCode:
          type: string
          readOnly: true
          example: '0001'
        firstName:
          type: string
          example: 'first'
    Response:
      type: object
      properties:
        customerCode:
          type: string
          example: '0001'
        firstName:
          type: string
          example: 'first'
