MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / extParseOmitZero

Function extParseOmitZero

pkg/codegen/extension.go:70–76  ·  view source on GitHub ↗
(extPropValue any)

Source from the content-addressed store, hash-verified

68}
69
70func extParseOmitZero(extPropValue any) (bool, error) {
71 omitZero, ok := extPropValue.(bool)
72 if !ok {
73 return false, fmt.Errorf("failed to convert type: %T", extPropValue)
74 }
75 return omitZero, nil
76}
77
78func extExtraTags(extPropValue any) (map[string]string, error) {
79 tagsI, ok := extPropValue.(map[string]any)

Callers 1

GenFieldsFromPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected