...

Text file src/github.com/go-openapi/spec/fixtures/expansion/schemas2.json

Documentation: github.com/go-openapi/spec/fixtures/expansion

     1{
     2  "definitions": {
     3    "car": {
     4      "type": "object",
     5      "properties": {
     6        "id": {
     7          "type": "integer",
     8          "format": "int64"
     9        },
    10        "make": {
    11          "type": "string"
    12        },
    13        "brand": {
    14          "items": {
    15            "$ref": "#/definitions/brand"
    16          }
    17        }
    18      }
    19    },
    20    "tag": {
    21      "type": "object",
    22      "properties": {
    23        "id": {
    24          "type": "integer",
    25          "format": "int64"
    26        },
    27        "value": {
    28          "type": "string"
    29        }
    30      }
    31    },
    32    "brand": {
    33      "type": "object",
    34      "properties": {
    35        "id": {
    36          "type": "integer",
    37          "format": "int64"
    38        },
    39        "name": {
    40          "type": "string"
    41        }
    42      }
    43    },
    44    "truck": {
    45      "items": {
    46        "$ref": "#/definitions/car"
    47      }
    48    },
    49    "batch": {
    50      "items": {
    51        "items": {
    52          "$ref": "#/definitions/brand"
    53        }
    54      }
    55    },
    56    "batch2": {
    57      "items": [
    58        {
    59          "items": {
    60            "$ref": "#/definitions/brand"
    61          }
    62        },
    63        {
    64          "items": {
    65            "$ref": "#/definitions/tag"
    66          }
    67        }
    68      ]
    69    },
    70    "allofBoth": {
    71      "allOf": [
    72        {
    73          "items": {
    74            "$ref": "#/definitions/brand"
    75          }
    76        },
    77        {
    78          "items": {
    79            "$ref": "#/definitions/tag"
    80          }
    81        }
    82      ]
    83    },
    84    "anyofBoth": {
    85      "anyOf": [
    86        {
    87          "items": {
    88            "$ref": "#/definitions/brand"
    89          }
    90        },
    91        {
    92          "items": {
    93            "$ref": "#/definitions/tag"
    94          }
    95        }
    96      ]
    97    },
    98    "oneofBoth": {
    99      "oneOf": [
   100        {
   101          "items": {
   102            "$ref": "#/definitions/brand"
   103          }
   104        },
   105        {
   106          "items": {
   107            "$ref": "#/definitions/tag"
   108          }
   109        }
   110      ]
   111    },
   112    "notSomething": {
   113      "not": {
   114        "items": {
   115          "$ref": "#/definitions/tag"
   116        }
   117      }
   118    },
   119    "withAdditional": {
   120      "additionalProperties": {
   121        "items": {
   122          "$ref": "#/definitions/tag"
   123        }
   124      }
   125    },
   126    "withPattern": {
   127      "patternProperties": {
   128        "^x-ab": {
   129          "items": {
   130            "$ref": "#/definitions/tag"
   131          }
   132        }
   133      }
   134    },
   135    "withAdditionalItems": {
   136      "additionalItems": {
   137        "items": {
   138          "$ref": "#/definitions/tag"
   139        }
   140      }
   141    },
   142    "deps": {
   143      "dependencies": {
   144        "something": {
   145          "items": {
   146            "$ref": "#/definitions/tag"
   147          }
   148        }
   149      }
   150    },
   151    "defined": {
   152      "definitions": {
   153        "something": {
   154          "items": {
   155            "$ref": "#/definitions/tag"
   156          }
   157        }
   158      }
   159    }
   160  }
   161}

View as plain text