-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
Problem with ajv package since upgrading to orval 6.6.1 #326
Comments
In your project or just trying to compile Orval ? Orval uses However I am using Orval 6.6.1 in my |
Yeah, I'm using it on project. Orval v. 6.6.0 works just fine.
You may not have faced with this issue because of different orval configuration |
We updated some dependencies maybe that can cause the problem |
Could be a problem with the dependency |
From what I see in the lock file you should have that dependency |
which version of npm/node are you using? |
|
I am not able to reproduce de problem 🙁 |
Maybe that is because of windows environment... Here is full log:
|
Seems like this issue is linked to this one and probably caused by bumping up the openapi-validator version from 0.53.1 to 0.55.0 |
I am using... npm: v8.0.0 let us know if you figure it out. Oh also I am using just React Query. My config is pretty straightforward. module.exports = {
authorization: {
output: {
mode: 'tags',
target: 'src/service/openapi-auth/authorization.ts',
client: 'react-query',
mock: false,
prettier: true,
override: {
useDates: true,
mutator: {
path: './src/service/AuthorizationMutator.ts',
name: 'useAuthAxiosMutator',
},
query: {
useQuery: true,
}
}
},
input: {
target: './authorization-openapi.json',
},
},
}; |
Yep looks like its fixed in 0.56.2 submitting a PR. |
Normally fixed with |
Looks like the problem is caused by an I have this errors by doing the
|
I think we can close this issue in case I have no ability to upgrade |
Which explains why I am not seeing it I am on NPM 8. |
JFYI: running |
During the
npm install
execution I've got these notifications:Execution of
npx orval
command fails with an error:Installing the
ajv
package didn't fix the situation. I just got another error:Error compiling schema, function code: <LOTS_OF_CODE_HERE>
The text was updated successfully, but these errors were encountered: