- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for populateRefs (0.16 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/openapi/resolver/refs.go
"k8s.io/kube-openapi/pkg/validation/spec" ) // PopulateRefs recursively replaces Refs in the schema with the referred one. // schemaOf is the callback to find the corresponding schema by the ref. // This function will not mutate the original schema. If the schema needs to be // mutated, a copy will be returned, otherwise it returns the original schema.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 17:23:50 UTC 2023 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/resolver/discovery.go
} resp := new(schemaResponse) err = json.Unmarshal(b, resp) if err != nil { return nil, err } ref, err := resolveRef(resp, gvk) if err != nil { return nil, err } s, err := PopulateRefs(func(ref string) (*spec.Schema, bool) { s, ok := resp.Components.Schemas[strings.TrimPrefix(ref, refPrefix)] return s, ok }, ref) if err != nil { return nil, err } return s, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 17:23:50 UTC 2023 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/openapi/resolver/definitions.go
ref, ok := d.gvkToRef[gvk] if !ok { return nil, fmt.Errorf("cannot resolve %v: %w", gvk, ErrSchemaNotFound) } s, err := PopulateRefs(func(ref string) (*spec.Schema, bool) { // find the schema by the ref string, and return a deep copy def, ok := d.defs[ref] if !ok { return nil, false } s := def.Schema return &s, true }, ref)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 17:23:50 UTC 2023 - 3K bytes - Viewed (0)