You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warn when import-mapping keys are JSON pointers instead of document paths #2459
expecting internal component refs to be remapped to another Go package. import-mapping keys are external document paths (files or URLs), not JSON pointers, so an entry like this silently never matches anything — the user just sees unresolved types with no hint about why.
Two small improvements:
Configuration validation should reject (or warn on) import-mapping keys starting with #, with a message along the lines of "import-mapping keys are document paths; internal refs cannot be remapped — see the import-mapping examples".
The README section on import-mapping should state explicitly that keys are document paths, that internal $refs always resolve to the current package, and point at examples/import-mapping/ for the two supported layouts (separate packages via spec split, same package via the "-" mapping).
Activity
Reject import-mapping keys that are JSON pointers (#2461)