Stream: hapi
Topic: validate http status code
Patrick Werner (Dec 12 2019 at 11:19):
I just had a closer look at the validate operation an noticed that this should return 200 even if the validation results are containing errors. Hapi doesn't follow this logic, i think that's intentional? But shouldn't it be alligned with the FHIR spec?
James Agnew (Dec 12 2019 at 14:20):
Hmm yeah, I think this is a case of the spec changing from previous versions (i'm pretty sure it used to mandate a 422 on validation failure) and us not cathning up. We should definitely be returning 200 then (for R4+ only?)
Patrick Werner (Dec 12 2019 at 15:02):
just checked, was changed with STU3
Patrick Werner (Dec 12 2019 at 15:04):
https://github.com/jamesagnew/hapi-fhir/issues/1628
Last updated: Apr 12 2022 at 19:14 UTC