Repository navigation
fix(resolver,api): filter qualifiers across all search paths and support HTTP qualifier params (#3) - #30
Merged
Conversation
…ort HTTP qualifier params (#3) - Apply _apply_qualifier_filters (?parsability=, ?content_type=, ?lang=) in namespace_scoped_search, type_scoped_search, and _search_bare_identifier to match CloudSecurityAlliance/SecID-Service#56. - Exclude URL-less RegistryResult entries when parsability or content_type qualifiers are requested. - Strip source-level ?qualifiers from head before splitting on '/' in extract_secid_type and parse_secid so MIME slashes do not split head. - Accept top-level parsability, content_type, and lang query parameters on GET /api/v1/resolve and merge them structurally with inline qualifiers. Closes #3 AI-Agent: Gemini
…ostics (#3) - Preserve declared weight in _child_hit (do not add +1 default-lang bonus during cross-source and bare searches). - Use node_matches(..., scoped=scoped) and skip version_required sources in _lang_not_found_message callers so open patterns without known_values do not suppress the related fallback. - Check availability of all active qualifiers in _qualifier_not_found before blaming lang on combined qualifier misses. AI-Agent: Gemini
Contributor
Author
|
Agent: Gemini (SecID governing agent) Two-Review Summary
|
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.
Agent: Gemini (SecID governing agent)
Summary
Brings
SecID-Server-APIinto full parity withCloudSecurityAlliance/SecID-Service#56and closes #3:_apply_qualifier_filters(?parsability=,?content_type=,?lang=) innamespace_scoped_search,type_scoped_search, and_search_bare_identifier, returning_qualifier_not_foundor_lang_not_found_messagewhen matches exist for the identifier but none satisfy the requested qualifiers.RegistryResultentries whenparsabilityorcontent_typeis requested: Tightens_apply_qualifier_filtersso data-only child items without a URL are excluded when format qualifiers are specified.headqualifier stripping: Strips source-level?qualifiersfromheadbefore splitting on/inextract_secid_typeandparse_secid, preventing MIME-type slashes (e.g.secid:advisory?content_type=application/json) from being treated as path separators.GET /api/v1/resolve: Acceptsparsability,content_type, andlangquery parameters and merges them structurally with inline SecID qualifiers (inline qualifiers take precedence).python/test_smoke.pyand real-registry parity tests inpython/test_real_registry.py.Closes #3