Skip to content

Feature/added fhir documentation#14

Merged
smunini merged 5 commits into
mainfrom
feature/added-fhir-documentation
Oct 1, 2025
Merged

Feature/added fhir documentation#14
smunini merged 5 commits into
mainfrom
feature/added-fhir-documentation

Conversation

@smunini
Copy link
Copy Markdown
Contributor

@smunini smunini commented Sep 30, 2025

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 1, 2025

Codecov Report

❌ Patch coverage is 86.87783% with 87 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/fhir-gen/src/lib.rs 86.87% 87 Missing ⚠️

📢 Thoughts on this report? Let us know!

@smunini smunini merged commit 06302d3 into main Oct 1, 2025
10 checks passed
@smunini smunini deleted the feature/added-fhir-documentation branch October 2, 2025 00:07
doug-helios pushed a commit that referenced this pull request Oct 2, 2025
doug-helios pushed a commit that referenced this pull request Oct 2, 2025
smunini added a commit that referenced this pull request May 19, 2026
…14)

Per the SoF v2 spec, the `header` parameter "applies only when csv
output is requested." Spec gives no requirement to reject it on other
formats. sof-server's body-parameter branch was returning 400 with
"Header parameter only applies to CSV format" — stricter than the spec.

- `crates/sof/src/handlers.rs` body-only branch: when `header` is
  supplied in the body but the negotiated `_format` isn't CSV, leave
  the validated format untouched (the `header` is advisory; ignore
  it) instead of erroring.
- `crates/sof/tests/common/mod.rs` stub mirrors the lenient behavior.
- `parse_content_type` already handled this correctly internally
  (only applies `header_param` when content-type == text/csv); this
  removes the early-return that was rejecting before the mapping ran.

Tests:
- `test_header_parameter_without_format_is_ignored_on_non_csv`
  (renamed from `test_header_parameter_without_format`) now asserts
  200 + JSON response, matching the new lenient behavior.
- `test_csv_header_parameter_with_non_csv_format` already expected
  the lenient behavior and continues to pass.
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.

1 participant