...

Text file src/cuelang.org/go/encoding/openapi/testdata/strings.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         "MyType": {
    11            "type": "object",
    12            "required": [
    13               "myString",
    14               "myPattern",
    15               "myAntiPattern"
    16            ],
    17            "properties": {
    18               "myString": {
    19                  "type": "string",
    20                  "minLength": 1,
    21                  "maxLength": 5
    22               },
    23               "myPattern": {
    24                  "type": "string",
    25                  "pattern": "foo.*bar"
    26               },
    27               "myAntiPattern": {
    28                  "type": "string",
    29                  "not": {
    30                     "pattern": "foo.*bar"
    31                  }
    32               }
    33            }
    34         }
    35      }
    36   }
    37}

View as plain text