-- in.cue --
// Issue #915
#Foo: [string]: #Foo

-- out/TestGenerateOpenAPI/out.json --
{
   "openapi": "3.0.0",
   "info": {
      "title": "Generated by cue.",
      "version": "no version"
   },
   "paths": {},
   "components": {
      "schemas": {
         "Foo": {
            "description": "Issue #915",
            "type": "object",
            "additionalProperties": {
               "$ref": "#/components/schemas/Foo"
            }
         }
      }
   }
}
