Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

fix: Relax validation rules before a patch can be applied #64

Merged
merged 2 commits into from
Mar 19, 2021

Conversation

chrisbednarski
Copy link
Contributor

@chrisbednarski chrisbednarski commented Mar 17, 2021

fhir spec specifies the supported patch content-types at https://www.hl7.org/fhir/http.html#patch

The structure of each patch type is dependent on the content-type.
application/json-patch+json patch type is being rejected due to very strict validation rules

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lyndoh
Copy link

lyndoh commented Mar 17, 2021

Seems to me that body.id check should be removed completely, since none of the patch formats have a body.id field ?

@chrisbednarski
Copy link
Contributor Author

happy to update the pr, if required

@rsmayda rsmayda changed the title Relax validation rules before a patch can be applied feat: Relax validation rules before a patch can be applied Mar 18, 2021
@rsmayda
Copy link
Contributor

rsmayda commented Mar 18, 2021

Hey thanks for cutting us a PR, looks like a good commit! Looks like our Semantic review failed. I updated the title of the PR to follow our standard.

When you get the chance could you commit an empty commit to retrigger the check

https://coderwall.com/p/vkdekq/git-commit-allow-empty

@rsmayda rsmayda changed the title feat: Relax validation rules before a patch can be applied fix: Relax validation rules before a patch can be applied Mar 18, 2021
@chrisbednarski
Copy link
Contributor Author

all checks pass now

@rsmayda rsmayda merged commit 5a87d2b into awslabs:mainline Mar 19, 2021
@rsmayda
Copy link
Contributor

rsmayda commented Mar 19, 2021

This will be added to the next release. Do you have any timelines you are working against with this change? The next release should be near the end of March 2021

@chrisbednarski
Copy link
Contributor Author

Great. Thanks for accepting my PR. End of March suits us fine.

@chrisbednarski chrisbednarski deleted the fix/unable-to-json-patch branch March 19, 2021 02:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants