cuelang.org/go@v0.10.1/encoding/openapi/testdata/refs.json (about)

     1  {
     2     "openapi": "3.0.0",
     3     "info": {
     4        "title": "test",
     5        "version": "v1"
     6     },
     7     "paths": {},
     8     "components": {
     9        "schemas": {
    10           "BaseType": {
    11              "type": "object",
    12              "required": [
    13                 "b"
    14              ],
    15              "properties": {
    16                 "b": {
    17                    "type": "string"
    18                 }
    19              }
    20           },
    21           "Keep": {
    22              "type": "object",
    23              "required": [
    24                 "excludedStruct",
    25                 "excludedInt"
    26              ],
    27              "properties": {
    28                 "excludedStruct": {
    29                    "description": "This comment is included",
    30                    "type": "object",
    31                    "required": [
    32                       "A"
    33                    ],
    34                    "properties": {
    35                       "A": {
    36                          "type": "integer"
    37                       }
    38                    }
    39                 },
    40                 "excludedInt": {
    41                    "type": "integer"
    42                 }
    43              }
    44           },
    45           "Type": {
    46              "type": "object",
    47              "properties": {
    48                 "a": {
    49                    "type": "string"
    50                 }
    51              },
    52              "allOf": [
    53                 {
    54                    "$ref": "#/components/schemas/BaseType"
    55                 }
    56              ]
    57           }
    58        }
    59     }
    60  }