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

fix(core): NPE check in validator #1238

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

melloware
Copy link
Collaborator

@melloware melloware commented Feb 26, 2024

fix #1139 fix(core): NPE check in validator

@melloware melloware added this to the 6.26.0 milestone Feb 26, 2024
@melloware melloware requested a review from anymaniax February 26, 2024 16:03
ibmOpenapiValidatorWarnings(warnings);
}

if (errors.length) {
if (errors && errors.length) {
Copy link
Contributor

@ezequiel ezequiel Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why this was returning undefined in the first place -- is that normal, or is it because spectral.run(...) failed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not for me i have no issues with Orval so I am not sure if its related to your environment or settings or something?

@melloware melloware added the bug Something isn't working label Feb 26, 2024
Copy link
Member

@soartec-lab soartec-lab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! I checked it.

@melloware melloware merged commit cf66f3f into orval-labs:master Feb 26, 2024
2 checks passed
@melloware melloware deleted the O1139-ibmvalidator branch February 26, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating from 6.19.1 to 6.20.0 leads to TypeError: Cannot read properties of undefined (reading 'length')
3 participants