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

Testing optional properties with null #29

Open
filip26 opened this issue Jul 29, 2023 · 0 comments
Open

Testing optional properties with null #29

filip26 opened this issue Jul 29, 2023 · 0 comments

Comments

@filip26
Copy link

filip26 commented Jul 29, 2023

Hi,
I'm not sure about this test input/credential-id-nonidentifier-fail.json.

It expects to fail when null on an optional property is set. Using null to test a required property is fine, but in a case of optional one, it might not be a good idea because many JSON and JSON-LD processors skip/omit properties with null. e.g. sometimes a special configuration is required to force a JSON parser to keep nulls.

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