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

What does this error mean? > #/paths/~1v1~1action~1amend/post/parameters/3/schema, expected 'string' to be 'number' #583

Open
lanxin11 opened this issue May 17, 2022 · 1 comment
Assignees

Comments

@lanxin11
Copy link

lanxin11 commented May 17, 2022

Hey,

After I convert a swagger file, I wanted to use oas-validate --lint option to lint the definition. But I keep getting this error:

#/paths/1v11action~1amend/post/parameters/3/schema
expected 'string' to be 'number'
API Reference: Billing 2022-04-21
https://rest.zuora.com

But in the corresponding parameters definition part (#/paths/~1v1~1action~1amend/post/parameters), there is no "3" in this section. Can anyone suggest what this error means?

@MikeRalphson
Copy link
Contributor

The 3 refers to the position in the parameters array, it is 0 based, so it is the 4th parameter. Without access to the input document, I can't debug the error message further I'm afraid.

@MikeRalphson MikeRalphson self-assigned this Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants