-
Notifications
You must be signed in to change notification settings - Fork 157
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
Add support for POST of empty objects #2222
Comments
lmsurpre
added a commit
that referenced
this issue
Apr 8, 2021
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
lmsurpre
added a commit
that referenced
this issue
Apr 8, 2021
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
lmsurpre
added a commit
that referenced
this issue
Apr 8, 2021
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
lmsurpre
added a commit
that referenced
this issue
Apr 8, 2021
Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Received 200 back and the correct response. proceeding to negative tests |
Negative Test
|
That is actually valid. So we're all set. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I encountered an issue where the CQL engine we are using tried to do a POST to
/ValueSet/<someid>/$expand
with an empty parameters object (e.g.{"resourceType": "Parameters"}
) and the IBM FHIR server failed to process the request because of the empty object. For example...Describe the solution you'd like
Parsing of empty objects was discussed in Zuplip here and turned into an issue that was voted on and approved for FHIR R4B here. I propose that we add support for empty objects to IBM FHIR in support of this vote.
Describe alternatives you've considered
As a workaround, clients can generally convert a request with an empty parameters body from POST to GET, but the spec allows this only when operations have the "affectsState" property set to false. The affectsState property does not seem to be widely used, so it is difficult to use this to determine behavior at runtime.
Acceptance Criteria
1.
WHEN the user does a POST to an operation with an empty parameters object
THEN the FHIR server will successfully parse the parameters and pass the object along to the operation
The text was updated successfully, but these errors were encountered: