package internal
import "k8s.io/kube-openapi/pkg/internal"
Index ¶
- Variables
- func DeterministicMarshal(in any) ([]byte, error)
- func IsExtensionKey(k string) bool
- func JSONRefFromMap(jsonRef *jsonreference.Ref, v map[string]interface{}) error
- func SanitizeExtensions(e map[string]interface{}) map[string]interface{}
Variables ¶
Used by tests to selectively disable experimental JSON marshaler
Used by tests to selectively disable experimental JSON unmarshaler
Functions ¶
func DeterministicMarshal ¶
DeterministicMarshal calls the jsonv2 library with the deterministic flag in order to have stable marshaling.
func IsExtensionKey ¶
IsExtensionKey returns true if the input string is of format x-* or X-*
func JSONRefFromMap ¶
func JSONRefFromMap(jsonRef *jsonreference.Ref, v map[string]interface{}) error
JSONRefFromMap populates a json reference object if the map v contains a $ref key.
func SanitizeExtensions ¶
SanitizeExtensions sanitizes the input map such that non extension keys (non x-*, X-*) keys are dropped from the map. Returns the new modified map, or nil if the map is now empty.
Source Files ¶
flags.go serialization.go
Directories ¶
Path | Synopsis |
---|---|
pkg/internal/third_party | |
pkg/internal/third_party/go-json-experiment | |
pkg/internal/third_party/go-json-experiment/json | Package json implements serialization of JSON as specified in RFC 4627, RFC 7159, RFC 7493, RFC 8259, and RFC 8785. |
pkg/internal/third_party/govalidator | Package govalidator is package of validators and sanitizers for strings, structs and collections. |
- Version
- v0.0.0-20250318190949-c8a335a9a2ff (latest)
- Published
- Mar 18, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 4 weeks ago –
Tools for package owners.