...

Text file src/cuelang.org/go/encoding/openapi/testdata/issue131.json

Documentation: cuelang.org/go/encoding/openapi/testdata

     1{
     2   "openapi": "3.0.0",
     3   "info": {
     4      "title": "test",
     5      "version": "v1"
     6   },
     7   "paths": {},
     8   "components": {
     9      "schemas": {
    10         "Block": {
    11            "type": "object",
    12            "required": [
    13               "a",
    14               "b"
    15            ],
    16            "properties": {
    17               "a": {
    18                  "type": "number",
    19                  "minimum": 50,
    20                  "exclusiveMinimum": true
    21               },
    22               "b": {
    23                  "type": "number",
    24                  "maximum": 10,
    25                  "exclusiveMaximum": true
    26               }
    27            }
    28         },
    29         "Blocks": {
    30            "type": "object",
    31            "required": [
    32               "block1"
    33            ],
    34            "properties": {
    35               "block1": {
    36                  "$ref": "#/components/schemas/Block"
    37               }
    38            }
    39         }
    40      }
    41   }
    42}

View as plain text