Skip to content
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

Path is undefined when using async functions within a custom function #2303

Closed
mnaumanali94 opened this issue Oct 3, 2022 · 1 comment · Fixed by #2304
Closed

Path is undefined when using async functions within a custom function #2303

mnaumanali94 opened this issue Oct 3, 2022 · 1 comment · Fixed by #2304
Assignees
Labels
p/medium released t/bug Something isn't working

Comments

@mnaumanali94
Copy link
Contributor

Describe the bug
Path is undefined when using async functions within a custom function. This results in errors being shown on line 1 only.

To Reproduce

  1. Given this API file
    my-sample-api.zip

  2. Run this CLI command spectral lint -r .spectral.json reference/todo-api.yaml

  3. See errors are all on line 1

Screenshot 2022-10-03 at 7 41 29 PM

Expected behavior
Correct line number should be shown with the error.

@mnaumanali94 mnaumanali94 added t/bug Something isn't working p/medium labels Oct 3, 2022
@P0lip P0lip self-assigned this Oct 3, 2022
@stoplight-bot
Copy link
Collaborator

🎉 This issue has been resolved in version @stoplight/spectral-core-v1.14.2 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p/medium released t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants