Skip to content

Conversation

@johngrimes
Copy link
Member

Output file extensions are now derived from the outputFormat MIME type rather than requiring explicit configuration.

Supported formats:

  • application/fhir+ndjson, application/x-ndjson, ndjson.ndjson
  • application/vnd.apache.parquet, parquet.parquet
  • Unknown formats → .ndjson (default)

The outputExtension parameter is now optional. When set, it overrides the inferred extension; when omitted, the extension is inferred from the format.

When downloading files from a bulk export, the extension is now derived
from the output format rather than using a hardcoded extension. This
ensures Parquet files get .parquet extensions when using
application/vnd.apache.parquet format.
Previously, outputExtension was used as a fallback when the format was
unrecognised. Now it acts as an explicit override:
- If outputExtension is set, use it regardless of format
- Otherwise, infer extension from outputFormat
- Default to "ndjson" for unknown formats
@johngrimes johngrimes marked this pull request as ready for review January 19, 2026 01:32
@johngrimes johngrimes requested a review from piotrszul January 19, 2026 01:32
@johngrimes johngrimes merged commit 900361e into main Jan 19, 2026
4 checks passed
@johngrimes johngrimes deleted the issue/fix-file-extensions branch January 19, 2026 04:48
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