{
  "openapi": "3.0.0",
  "info": {
    "title": "photos API",
    "description": "picsum",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://picsum.photos/",
      "description": "picsum photos"
    }
  ],
  "paths": {
    "/{width}/{height}": {
      "get": {
        "tags": [
          "The Lorem Ipsum for photos"
        ],
        "description": "Return a photo",
        "parameters": [
          {
            "name": "width",
            "in": "path",
            "description": "photo width",
            "required": true,
            "example": 100,
            "schema": {
              "minimum": 100,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "height",
            "in": "path",
            "description": "photo height",
            "required": true,
            "example": 100,
            "schema": {
              "minimum": 100,
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Default response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "attributes": {
                          "type": "object",
                          "properties": {
                            "randomId": {
                              "type": "integer"
                            }
                          },
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "title1": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "properties": {
                                    "examId1": {
                                      "type": "integer"
                                    }
                                  }
                                }
                              ]
                            },
                            {
                              "oneOf": [
                                {
                                  "properties": {
                                    "title2": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "properties": {
                                    "examId2": {
                                      "type": "integer"
                                    }
                                  }
                                }
                              ]
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}