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

Improve json serializer #179

Open
ppazos opened this issue Oct 26, 2023 · 0 comments
Open

Improve json serializer #179

ppazos opened this issue Oct 26, 2023 · 0 comments

Comments

@ppazos
Copy link
Collaborator

ppazos commented Oct 26, 2023

The serializer shouldn't assume the input is valid, and should verify required attributes have a value instead of assuming they are present, so we avoid giving an exception to the user from the not found method, and instead we give our exception about the missing required data.

Exception in thread "main" groovy.lang.MissingMethodException: No signature of method: com.cabolabs.openehr.formats.OpenEhrJsonSerializer.serializeNullObject() is applicable for argument types: (null) values: [null]

Might need to fix the xml serializer too.

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