-- in.cue --
#CaptureMode: {
	"DEFAULT"
	#enumValue: 0
} | {
	"IPTABLES"
	#enumValue: 1
} | {
	"NONE"
	#enumValue: 2
}

-- out/TestGenerateOpenAPI/out.json --
{
   "openapi": "3.0.0",
   "info": {
      "title": "Generated by cue.",
      "version": "no version"
   },
   "paths": {},
   "components": {
      "schemas": {
         "CaptureMode": {
            "type": "string",
            "enum": [
               "DEFAULT",
               "IPTABLES",
               "NONE"
            ]
         }
      }
   }
}