github.com/easysoft/zendata@v0.0.0-20240513203326-705bd5a7fd67/demo/mock/input/my-openapi.json (about)

     1  {
     2    "openapi": "3.0.2",
     3    "info": {
     4      "title": "My API",
     5      "version": "0.1.0"
     6    },
     7    "paths": {
     8      "/foo": {
     9        "get": {
    10          "responses": {
    11            "200": {
    12              "$ref": "my-other-openapi.json#/components/responses/DefaultResponse"
    13            }
    14          }
    15        }
    16      }
    17    },
    18  
    19    "components": {
    20      "schemas": {
    21        "DefaultObject": {
    22          "type": "object",
    23          "properties": {
    24            "foo": {
    25              "type": "string"
    26            },
    27            "bar": {
    28              "type": "integer"
    29            }
    30          }
    31        }
    32      },
    33      "responses": {
    34        "DefaultResponse": {
    35          "description": "",
    36          "content": {
    37            "application/json": {
    38              "schema": {
    39                "$ref": "#/components/schemas/DefaultObject"
    40              }
    41            }
    42          }
    43        }
    44      }
    45    }
    46  }