When using fhir.resources in a Fastapi context, there're many many log lines warning about Fastapi passing in "extra" parameters to (amongst others) dict() that is part of the Pydantic API, but overridden in this library. I'd like to propose to use warnings.warn instead.
Description
When using
fhir.resources
in a Fastapi context, there're many many log lines warning about Fastapi passing in "extra" parameters to (amongst others)dict()
that is part of the Pydantic API, but overridden in this library. I'd like to propose to usewarnings.warn
instead.I realize this issue was covered in #89 and #90 before, however the proposed fix was not applied to the
dict()
function. Instead I'd propose the approach in https://github.com/nazrulworld/fhir.resources/pull/138