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

Function extParseOmitEmpty

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

Source from the content-addressed store, hash-verified

60}
61
62func extParseOmitEmpty(extPropValue any) (bool, error) {
63 omitEmpty, ok := extPropValue.(bool)
64 if !ok {
65 return false, fmt.Errorf("failed to convert type: %T", extPropValue)
66 }
67 return omitEmpty, nil
68}
69
70func extParseOmitZero(extPropValue any) (bool, error) {
71 omitZero, ok := extPropValue.(bool)

Callers 1

GenFieldsFromPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected