Skip to content

feat: add UnmarshalJSON for Schema to parse JSON into schema objects#201

Merged
q-uint merged 1 commit intomasterfrom
feat/schema-unmarshal
Mar 28, 2026
Merged

feat: add UnmarshalJSON for Schema to parse JSON into schema objects#201
q-uint merged 1 commit intomasterfrom
feat/schema-unmarshal

Conversation

@q-uint
Copy link
Copy Markdown
Collaborator

@q-uint q-uint commented Mar 28, 2026

Add JSON deserialization support so that SCIM schema definitions in JSON format can be parsed directly into schema.Schema structs, the inverse of the existing MarshalJSON. This includes recursive parsing of attributes and sub-attributes, mapping JSON string values back to internal enum types (attributeType, attributeMutability, attributeReturned, attributeUniqueness), and an UnmarshalJSON for optional.String.

Closes #153

Add JSON deserialization support so that SCIM schema definitions in JSON
format can be parsed directly into schema.Schema structs, the inverse of
the existing MarshalJSON. This includes recursive parsing of attributes
and sub-attributes, mapping JSON string values back to internal enum
types (attributeType, attributeMutability, attributeReturned,
attributeUniqueness), and an UnmarshalJSON for optional.String.
@q-uint q-uint merged commit 8c2ba6d into master Mar 28, 2026
8 checks passed
@q-uint q-uint deleted the feat/schema-unmarshal branch March 28, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature to parse schema json into a schema.Schema object?

1 participant