Repository navigation
feat(registry): map the datasets file selector and versions refusals - #10
Merged
Merged
Conversation
`GET /api/datasets/{id}/{content_version}/file` serves under `datasets.files` and refuses `request_invalid` (400), `excel_limit`, `excel_illegal_character`, `parquet_size_bound`, `rollup_not_summable` and `capability_unavailable` (422), and `internal_error` (500). The open `GET /api/datasets/{id}/versions` serves under `datasets.snapshot` and refuses `request_invalid` (400). The registry README names both routes.
The platform resolves one status per code, and every other endpoint answers capability_unavailable with 501.
jm-rivera
added this pull request to stack #12
October 21, 2026 15:13
jm-rivera
marked this pull request as ready for review
October 23, 2026 06:30
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.
Maps the refusals that two dfo-apis datasets routes serve, so the dfo-apis registry binding test passes once its spec-kit pin moves here. No new codes.
datasets.filesgainsGET /api/datasets/{id}/{content_version}/file, which selects a stored version's file by format, bundle and layout and renders it when it is missing. It refusesrequest_invalid(400);excel_limit,excel_illegal_character,parquet_size_boundandrollup_not_summable(422);capability_unavailable(501, as on every other endpoint); andinternal_error(500).datasets.snapshotgains the open, paginatedGET /api/datasets/{id}/versions, which refusesrequest_invalid(400).tools/validate_registry.pyvalidates 203 entries,tools/testspasses 53 tests andpython/spec-kitpasses 259.