-
Notifications
You must be signed in to change notification settings - Fork 109
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
Validation error if resource id is set before any mandatory fields #56
Comments
First of all thanks a lot for your nice input!
|
Thank you for the detailed explanation! The new validation support is incredibly helpful (although the initial migration was a bit painful:). Great work! Is it OK if I create a PR and update the README.md's "Example: 5:" with a reference to this issue/your comment? |
You are always welcome 🙏 to make any PR. |
I have a workaround for this: I use the constructor but with those parameters that are required.
|
Description
It seems that the validation success depends on when
resource.id
is set - at least that's my interpretation for now. Is this expected behavior?What I Did
The following crashes with a validation error:
but switching
o.id
ando.status
around works fine:{"id": "o123", "status": "final", "resourceType": "Observation"}
The text was updated successfully, but these errors were encountered: