...

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

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

     1{
     2   "openapi": "3.0.0",
     3   "info": {
     4      "title": "Generated by cue.",
     5      "version": "no version"
     6   },
     7   "paths": {},
     8   "components": {
     9      "schemas": {
    10         "Duration": {
    11            "type": "string"
    12         },
    13         "MyStruct": {
    14            "type": "object",
    15            "required": [
    16               "contains"
    17            ],
    18            "properties": {
    19               "timestamp1": {
    20                  "type": "string",
    21                  "format": "date-time"
    22               },
    23               "timestamp2": {
    24                  "type": "string",
    25                  "format": "date-time"
    26               },
    27               "timestamp3": {
    28                  "type": "string",
    29                  "format": "date-time"
    30               },
    31               "timestamp4": {
    32                  "type": "string",
    33                  "format": "date-time"
    34               },
    35               "date1": {
    36                  "type": "string",
    37                  "format": "date"
    38               },
    39               "date2": {
    40                  "type": "string",
    41                  "format": "date"
    42               },
    43               "timeout": {
    44                  "$ref": "#/components/schemas/Duration"
    45               },
    46               "contains": {
    47                  "type": "array"
    48               }
    49            }
    50         }
    51      }
    52   }
    53}

View as plain text