From 8029e2d5bcd21e967db7fb0217b813d3b6b39b11 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Tue, 17 Jan 2023 14:50:44 -0500 Subject: [PATCH] Ml 3466 fix and improve openapi generation (#4437) * Update fhir version constants from 4.0.0 to 4.0.1 Yes, this means the test fails. The root cause of the failure is possibly the incorrect fhir version in org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/model/Constants.java * fixes hapifhir/hapi-fhir#3466 Includes a POST version for every GET endpoint. Excludes non-primitive parameters from GET endpoints. For an idempotent (affectsState=false) endpoint with at least one required non-primitive parameter, only support POST Also include */_search endpoints for the Search operation. * Add changelog Co-authored-by: Michael Lawley Co-authored-by: Michael Lawley --- .../fhir/changelog/6_4_0/3466-improve-openapi-docs.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/6_4_0/3466-improve-openapi-docs.yaml diff --git a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/6_4_0/3466-improve-openapi-docs.yaml b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/6_4_0/3466-improve-openapi-docs.yaml new file mode 100644 index 00000000000..45499c2a317 --- /dev/null +++ b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/6_4_0/3466-improve-openapi-docs.yaml @@ -0,0 +1,9 @@ +--- +type: fix +issue: 3466 +title: "Several issues with the OpenAPI generator have been fixed: + * FHIR Operations will always include a POST invocation option + * Non-primitive parameters will be excluded from GET invocations + * For an idempotent (affectsState=false) endpoint with at least one required non-primitive parameter, only support POST + * Also include `_search` endpoints for the Search operation + Thanks to Michael Lawley for the pull request!"