internal

package
v0.0.0-...-5bee61f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeterministicMarshal

func DeterministicMarshal(in any) ([]byte, error)

DeterministicMarshal calls the jsonv2 library with the deterministic flag in order to have stable marshaling.

func IsExtensionKey

func IsExtensionKey(k string) bool

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

func SanitizeExtensions(e map[string]interface{}) map[string]interface{}

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.

Types

This section is empty.

Directories

Path Synopsis
third_party
govalidator
Package govalidator is package of validators and sanitizers for strings, structs and collections.
Package govalidator is package of validators and sanitizers for strings, structs and collections.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址