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

     1  -- in.cue --
     2  // Issue #915
     3  #Foo: [string]: #Foo
     4  
     5  -- out/TestGenerateOpenAPI/out.json --
     6  {
     7     "openapi": "3.0.0",
     8     "info": {
     9        "title": "Generated by cue.",
    10        "version": "no version"
    11     },
    12     "paths": {},
    13     "components": {
    14        "schemas": {
    15           "Foo": {
    16              "description": "Issue #915",
    17              "type": "object",
    18              "additionalProperties": {
    19                 "$ref": "#/components/schemas/Foo"
    20              }
    21           }
    22        }
    23     }
    24  }