Skip to content

Improve stack traces #2083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mrlubos opened this issue May 28, 2025 · 0 comments
Open

Improve stack traces #2083

mrlubos opened this issue May 28, 2025 · 0 comments
Labels
feature 🚀 New feature or request

Comments

@mrlubos
Copy link
Member

mrlubos commented May 28, 2025

Example stack trace

Reference not found: #/components/schemas/validation-error
Error: Reference not found: #/components/schemas/validation-error
    at resolveRef (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:3145:13)
    at IRContext.resolveRef (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:3245:12)
    at parseRef3 (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:7963:31)
    at schemaToIrSchema3 (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:8152:12)
    at operationToIrOperation3 (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:8409:17)
    at parseOperation3 (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:8470:38)
    at parseV3_1_X (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:8762:7)
    at parseOpenApiSpec (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:11872:7)
    at createClient (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:12189:17)
    at async Promise.all (index 0)
    at async createClient3 (/@hey-api/openapi-ts/packages/openapi-ts/dist/index.cjs:24463:21)
    at async start (/@hey-api/openapi-ts/packages/openapi-ts/bin/index.cjs:131:21)

Ideally we'd have context about each step where it matters: which operation was being processed, which schema was being processed, which field was being processed, etc.

@mrlubos mrlubos added the feature 🚀 New feature or request label May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant