-
Notifications
You must be signed in to change notification settings - Fork 151
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
UI generate spec for api #1289
UI generate spec for api #1289
Conversation
package.json
Outdated
"start": "yarn watch:openapi", | ||
"start:frontend": "cd ui && yarn start" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO do przeniesienia do ui/package.json
…mpatibility issue with CRA
… UserService.test.ts
@@ -18,11 +18,14 @@ | |||
"@types/react-router-bootstrap": "^0.26.6", | |||
"@types/react-router-dom": "^5.3.3", | |||
"@types/yup": "^0.32.0", | |||
"axios": "^1.6.5", | |||
"axios": "0.27.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was getting an error like described here: openapistack/openapi-client-axios#172
Turns out, this is an incompatibility issue related to create-react-app.
I had it fixed by downgrading axios' version, as suggested here: facebook/create-react-app#12823 (comment)
In the long run, we might think about migrating this project out of CRA and into Vite-backed codebase, as suggested in the first link.
- name: Generate OpenAPI Spec | ||
id: generate-openapi-spec | ||
run: sbt "backend/generateOpenAPISpec" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before running tests, we need an openapi.yaml
file, which is then used to generate proper types (otherwise, tests would fail)
No description provided.