-- in.cue --
#D: {
	a: int
	#b: int
	a_value: int
	// Only definitions ending in _value are omitted.
	#b_value: int
	"a b_value": int
}

-- out/TestGenerateOpenAPI/out.json --
{
   "openapi": "3.0.0",
   "info": {
      "title": "Generated by cue.",
      "version": "no version"
   },
   "paths": {},
   "components": {
      "schemas": {
         "D": {
            "type": "object",
            "required": [
               "a",
               "a_value",
               "a b_value"
            ],
            "properties": {
               "a": {
                  "type": "integer"
               },
               "a_value": {
                  "type": "integer"
               },
               "a b_value": {
                  "type": "integer"
               }
            }
         },
         "D.b": {
            "type": "integer"
         }
      }
   }
}