Skip to content

Add local-cache fallback for namespace-to-schema resolution - #175

Merged
manusimidt merged 6 commits into
manusimidt:mainfrom
mariuszlipinski:local/all-my-patches
Aug 29, 2026
Merged

Add local-cache fallback for namespace-to-schema resolution#175
manusimidt merged 6 commits into
manusimidt:mainfrom
mariuszlipinski:local/all-my-patches

Conversation

@mariuszlipinski

@mariuszlipinski mariuszlipinski commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add local-cache fallback for namespace-to-schema resolution (for trusted hosts only).
  • Improve taxonomy namespace resolution by normalizing namespace keys.

Why

  • Prevent namespace lookup misses caused by trailing slashes/format differences.
  • Resolve more taxonomies from already cached schemas.
  • Keep behavior safe by limiting fallback to trusted hosts.

Validation

  • ruff check xbrl
  • ruff format --check xbrl
  • mypy xbrl --check-untyped-defs
  • pytest tests/

@mariuszlipinski mariuszlipinski changed the title taxonomy: normalize namespace lookup and improve local cache fallback Add local-cache fallback for namespace-to-schema resolution Mar 6, 2026
@manusimidt

Copy link
Copy Markdown
Owner

Hi @mariuszlipinski thanks a lot for the PR, looks like an interesting one!
I am running out of time rn, I try to review and merge it on sunday.
Thanks!

@manusimidt
manusimidt self-requested a review March 20, 2026 14:50
@manusimidt manusimidt self-assigned this Mar 20, 2026
@mariuszlipinski

Copy link
Copy Markdown
Contributor Author

I think that if Resolve taxonomy namespaces from trusted schema references (PR #182) was accepted, then this one should be also. They go hand in hand.

@manusimidt
manusimidt merged commit d00be43 into manusimidt:main Aug 29, 2026
6 checks passed
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