AshOaskit.Core.JsonKeys (AshOasKit v0.4.2)

View Source

Checks native JSON object names and string encodings before normalization.

Summary

Functions

Returns the value unchanged, raising ArgumentError for duplicate JSON names or unsupported map keys. Object names and string values must be valid UTF-8. Atom, string, and integer keys are accepted, but two keys that normalize to the same string are ambiguous even if their values match. No atoms are created and no values are encoded or decoded.

Functions

validate!(value)

@spec validate!(term()) :: term()

Returns the value unchanged, raising ArgumentError for duplicate JSON names or unsupported map keys. Object names and string values must be valid UTF-8. Atom, string, and integer keys are accepted, but two keys that normalize to the same string are ambiguous even if their values match. No atoms are created and no values are encoded or decoded.