cuelang.org/go@v0.13.0/encoding/openapi/testdata/quotedfield.txtar (about)

     1  -- in.cue --
     2  #Def: {
     3      "@type": string
     4  }
     5  
     6  -- out/TestGenerateOpenAPI/out.json --
     7  {
     8     "openapi": "3.0.0",
     9     "info": {
    10        "title": "Generated by cue.",
    11        "version": "no version"
    12     },
    13     "paths": {},
    14     "components": {
    15        "schemas": {
    16           "Def": {
    17              "type": "object",
    18              "required": [
    19                 "@type"
    20              ],
    21              "properties": {
    22                 "@type": {
    23                    "type": "string"
    24                 }
    25              }
    26           }
    27        }
    28     }
    29  }