github.com/sanposhiho/openapi2proto@v0.0.0-20230521044535-d1080a134e37/fixtures/refs.json (about)

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "refs"
     5    },
     6    "definitions": {
     7      "TestModel": {
     8        "type": "object",
     9        "properties": {
    10          "test_map_object": {
    11            "type": "object",
    12            "additionalProperties": {
    13              "$ref": "#/definitions/TestModel"
    14            },
    15            "x-proto-tag": 11
    16          },
    17          "test_map_scalar": {
    18            "type": "object",
    19            "additionalProperties": {
    20              "type": "string"
    21            },
    22            "x-proto-tag": 12
    23          },
    24          "test_map_array": {
    25            "type": "object",
    26            "additionalProperties": {
    27              "type": "array",
    28              "items": {
    29                "$ref": "#/definitions/TestModel"
    30              }
    31            },
    32            "x-proto-tag": 13
    33          },
    34          "test_map_array_untyped_fields": {
    35            "type": "object",
    36            "additionalProperties": {
    37              "type": "array",
    38              "items": {
    39                "type": "object",
    40                "properties": {
    41                  "id": {
    42                    "type": "integer"
    43                  }
    44                }
    45              }
    46            },
    47            "x-proto-tag": 15
    48          },
    49          "test_map_array_untyped": {
    50            "type": "object",
    51            "additionalProperties": {
    52              "type": "array",
    53              "items": {
    54                "type": "object"
    55              }
    56            },
    57            "x-proto-tag": 14
    58          },
    59          "test_allof_object_with_ref": {
    60            "allOf": [
    61              {
    62                "$ref": "#/definitions/TestModel3"
    63              }
    64            ],
    65            "description": "AllOf object"
    66          }
    67        }
    68      },
    69      "TestModel2": {
    70        "type": "object",
    71        "properties": {
    72          "test_map_array": {
    73            "type": "object",
    74            "additionalProperties": {
    75              "type": "array",
    76              "items": {
    77                "$ref": "#/definitions/TestModel"
    78              }
    79            },
    80            "x-proto-tag": 16
    81          }
    82        }
    83      },
    84      "TestModel3": {
    85        "type": "string",
    86        "description": "Test string"
    87      }
    88    }
    89  }