{"record":{"id":"5cd70b45dbf74a40","repo":"grpc-ecosystem/grpc-gateway","slug":"unknown-field-type-v","errorCode":null,"errorMessage":"unknown field type %v","messagePattern":"unknown field type (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"protoc-gen-openapiv2/internal/genopenapi/template.go","lineNumber":1662,"sourceCode":"\t\t\t\t\t\tparamFormat = \"\"\n\t\t\t\t\t\tenumNames = listEnumNames(reg, enum)\n\t\t\t\t\t\tif reg.GetEnumsAsInts() {\n\t\t\t\t\t\t\tparamType = \"integer\"\n\t\t\t\t\t\t\tparamFormat = \"\"\n\t\t\t\t\t\t\tenumNames = listEnumNumbers(reg, enum)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tschema := schemaOfField(parameter.Target, reg, customRefs)\n\t\t\t\t\t\tdesc = schema.Description\n\t\t\t\t\t\tdefaultValue = schema.Default\n\t\t\t\t\t\texample = schema.Example\n\t\t\t\t\t\tschemaPattern = schema.Pattern\n\t\t\t\t\t\textensions = schema.extensions\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tvar ok bool\n\t\t\t\t\t\tparamType, paramFormat, ok = primitiveSchema(pt)\n\t\t\t\t\t\tif !ok {\n\t\t\t\t\t\t\treturn fmt.Errorf(\"unknown field type %v\", pt)\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tschema := schemaOfField(parameter.Target, reg, customRefs)\n\t\t\t\t\t\tdesc = schema.Description\n\t\t\t\t\t\tdefaultValue = schema.Default\n\t\t\t\t\t\texample = schema.Example\n\t\t\t\t\t\tschemaPattern = schema.Pattern\n\t\t\t\t\t\textensions = schema.extensions\n\t\t\t\t\t\t// If there is no mandatory format based on the field,\n\t\t\t\t\t\t// allow it to be overridden by the user\n\t\t\t\t\t\tif paramFormat == \"\" {\n\t\t\t\t\t\t\tparamFormat = schema.Format\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif parameter.IsRepeated() {\n\t\t\t\t\t\tcore := schemaCore{Type: paramType, Format: paramFormat}\n\t\t\t\t\t\tif parameter.IsEnum() {","sourceCodeStart":1644,"sourceCodeEnd":1680,"githubUrl":"https://github.com/grpc-ecosystem/grpc-gateway/blob/a58a4436a376a4bcc7d8f10c4d4f919a8438bba9/protoc-gen-openapiv2/internal/genopenapi/template.go#L1644-L1680","documentation":"Type-mapping error in genopenapi renderServices: a path parameter's target field type (pt) has no mapping in primitiveSchema, so the generator cannot determine the OpenAPI paramType/paramFormat. The failing input is an unusual proto field kind (e.g. group or unmapped WKT) used as a path parameter.","triggerScenarios":"Thrown at protoc-gen-openapiv2/internal/genopenapi/template.go:1662 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a primitive or supported enum/message type for the path parameter.","Add/update type mappings or upgrade grpc-gateway for wider type support.","Move the value into the body/query where richer schema rendering applies."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a58a4436a376a4bcc7d8f10c4d4f919a8438bba9","analyzedAt":"2026-09-02T10:28:31.537Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T16:17:10.729Z"}