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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(crossrepo): classify vendored OpenAPI specs as client routes (#206)
The OpenAPI extractor defaults every spec to role=server, demoting to
client only for the openapi/client/ directory convention. Mobile apps
vendor the specs of services they call in a bare openapi/ dir, so those
were indexed as served endpoints: an Android app acquired inbound edges
from three backends and 28 unused-route findings.
Add a pre-link binder demoting a repo's OpenAPI routes to role=client when
the repo ships a native-app HTTP client (retrofit/urlsession/swift-endpoint/
dart) and declares no server route outside a spec. The native-app marker is
positive evidence, so spec-first backends serving only from api/openapi/*.yml
are untouched. Rewritten facts carry vendored_spec=true, keeping the change
auditable and reversible.
Also add "loading" to uiRouteTypes: a Next.js loading.tsx under a single
dynamic segment extracts as "/{}", matching any one-segment client call
with a path parameter.