fix: align endpoint data formats with production Swagger - #319
Open
krowvin wants to merge 3 commits into
Open
Conversation
This was
linked to
issues
Sep 11, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Several endpoint wrappers send JSON v2 to operations that accept unversioned JSON, while BLOB creation and CLOB writes send unversioned JSON where Swagger requires v2. For example, the live profile-list GET returns HTTP 406 with the existing v2 header and HTTP 200 with the corrected header.
api_versionselects a data representation, not a CDA release. Preserve the existing unversioned JSON aliases and supported v2/XML methods.2026.05.12-i, and add 34 wire-header regression checks.Validation: the new checks produce 28 failures on unchanged
main; all 132 mock/doctest tests pass after the fix. Strict mypy, Black, isort, and diff checks pass. Live validation was read-only; authenticated write behavior is covered by prepared-request tests, not production writes.The existing project retrieval fix is preserved and now has a header regression test. The additional header tests support the coverage work in #257; this PR does not complete the broader integration-test coverage request.