package
0.2.5
Repository: https://github.com/hasura/ndc-rest-schema.git
Documentation: pkg.go.dev

# Functions

ApplyPatch applies patches to the raw bytes input.
ApplyPatchFromRawJSON applies patches to the raw JSON bytes input without validation request.
ApplyPatchToRestSchema applies JSON patches to NDC rest schema and validate the output.
MarshalSchema encodes the NDC REST schema to bytes.
ReadFileFromPath read file content from either file path or URL.
ResolveFilePath resolves file path with directory.
SliceUnorderedEqual compares if both slices are equal with unordered positions.
SplitStrings wrap strings.Split with all leading and trailing white space removed.
StringSliceToCamelCase convert a slice of strings to camelCase.
StringSliceToConstantCase convert a slice of string to CONSTANT_CASE.
StringSliceToPascalCase convert a slice of string to PascalCase.
StringSliceToSnakeCase convert a slice of string to snake_case.
ToCamelCase convert a string to camelCase.
ToConstantCase converts string to CONSTANT_CASE.
ToPascalCase convert a string to PascalCase.
ToSnakeCase converts string to snake_case.
WalkFiles read one file or many files in a folder if the file path is a directory.
WriteSchemaFile writes the NDC REST schema to file.

# Constants

PatchStrategyJSON6902 the patch strategy enum for [RFC 6902] specification [RFC 6902]: https://datatracker.ietf.org/doc/html/rfc6902.
PatchStrategyMerge the merge strategy enum for [RFC 7396] specification [RFC 7396]: https://datatracker.ietf.org/doc/html/rfc7396.

# Structs

PatchConfig the configuration for JSON patch.

# Type aliases

PatchStrategy represents the patch strategy enum.