INNER CODE UNIT · Go
missingMachinerySwagger
numaproj/numaflow · hack/gen-openapi-spec/main.go:178
func missingMachinerySwagger() spec.Definitions {
r := make(map[string]spec.Schema)
r["io.k8s.apimachinery.pkg.apis.meta.v1.Duration"] = spec.Schema{
SchemaProps: spec.SchemaProps{
Type: spec.StringOrArray{"string"},
Description: "Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.",
},
}
return r
}