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

Allow schema to be nil in Unmarshal #49

Open
mfcochauxlaberge opened this issue Aug 18, 2019 · 0 comments
Open

Allow schema to be nil in Unmarshal #49

mfcochauxlaberge opened this issue Aug 18, 2019 · 0 comments

Comments

@mfcochauxlaberge
Copy link
Owner

Currently, the library needs to know about the schema when unmarshaling payloads. With structs like SoftResource, it might be possible to unmarshal an unknown payload with SoftResource and SoftCollection. Validation would be limited and that's probably okay. Providing a schema could simply be a way to add validation and convenience (use the proper structs instead of SoftResource).

Investigate the feasibility and do it if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant