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

FI-1223: Support the validator /version returning a JSON #448

Merged
merged 3 commits into from
Aug 8, 2023

Conversation

dehall
Copy link
Contributor

@dehall dehall commented Jul 11, 2023

In anticipation of the validator /version endpoint returning a JSON (see inferno-framework/fhir-validator-wrapper#62 ), this PR updates the logic for checking the validator version.

Because previously the version check was just a basic string comparison, using JSON introduces some new ways it could fail: the JSON might not parse, or it might not contain the right key, etc. This set of changes is intended to be simple and minimal but not break if anything goes wrong.

Testing Guidance:
Make sure an "old" instance of the validator that returns a string version doesn't crash. Make sure when using a validator returning JSON that this compares the version number against the value of the inferno-framework/fhir-validator-wrapper key as expected.

@dehall dehall merged commit cabc507 into main Aug 8, 2023
@dehall dehall deleted the fi-1223-version-json branch August 8, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants