Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator classifies null values as invalid #8

Open
ostrolucky opened this issue Sep 28, 2024 · 0 comments
Open

Validator classifies null values as invalid #8

ostrolucky opened this issue Sep 28, 2024 · 0 comments

Comments

@ostrolucky
Copy link

ostrolucky commented Sep 28, 2024

According RFC 7643, section 2.5

Unassigned attributes, the null value, or an empty array (in the case
of a multi-valued attribute) SHALL be considered to be equivalent in
"state". Assigning an attribute with the value "null" or an empty
array (in the case of multi-valued attributes) has the effect of
making the attribute "unassigned". When a resource is expressed in
JSON format, unassigned attributes, although they are defined in
schema, MAY be omitted for compactness.

However, current validator doesn't respect this, so we gotta strip away all attributes with null values to satisfy this validator, which represent extra work.

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

No branches or pull requests

1 participant