openapi: 3.0.0
info:
  title: tennis
  version: '1.0'
  contact:
    name: test
paths:
  /getPlayer:
    get:
      summary: Possibility of generatiing 1024 Examples
      description: the test case ensures that it do not generate more than 10 examples
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Player'
      tags:
        - Many Examples

  /getTennisMatch:
    get:
      summary: Possibility of generatiing 1 million Examples 
      description: the test case ensures that it do not generate more than 10 examples
      tags:
        - Many Examples
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  leftPlayer:
                    $ref: '#/components/schemas/Player'
                  rightPlayer:
                    $ref: '#/components/schemas/Player'
      
    parameters: []
components:
  schemas:
    Color:
      title: Color
      description: ''
      oneOf:
        - type: string
          properties: {}
          description: color code
          example: '#FF0000'
        - type: object
          properties:
            r:
              type: integer
              example: 255
            g:
              type: integer
              example: 0
            b:
              type: integer
              example: 0
          description: RGB color
    Player:
      title: Player
      type: object
      properties:
        eyeColor:
          $ref: '#/components/schemas/Color'
        hairColor:
          $ref: '#/components/schemas/Color'
        lipColor:
          $ref: '#/components/schemas/Color'
        mouthColor:
          $ref: '#/components/schemas/Color'
        pantsColor:
          $ref: '#/components/schemas/Color'
        racketColor:
          $ref: '#/components/schemas/Color'
        shirtColor:
          $ref: '#/components/schemas/Color'
        shoeColor:
          $ref: '#/components/schemas/Color'
        skinColor:
          $ref: '#/components/schemas/Color'
        sockColor:
          $ref: '#/components/schemas/Color'
