-
Notifications
You must be signed in to change notification settings - Fork 67
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
OH2-205: Add code generation on Swagger #290
OH2-205: Add code generation on Swagger #290
Conversation
I can see only this change. Also, there are conflicts with the develop branch: did you sync your develop before to make changes? |
After some research, it seems to me that scopes are not applicable to
After that, everything seems still working fine, but still some validation errors occur: |
The error about equivalent path is cause by the new specification of OpenAPI that not allow the same path with different verb. look here : swagger-api/swagger-editor#1677 |
I think the "equivalent path" is a symptom the API are not well organized and it could be a suggestion to adopt better practises. What about the other errors? |
It's the list of dates in which the patient should take the drugs, they are calculated from |
Can you check that RFC? |
yes I am working on its |
is it related to informatici/openhospital-ui#483 ? |
okay but the error appear because the status 200 don't have the description
the error is not about this fond-end task. it is related to the logout api. the error appear because the 200 status don't have description. to solve it we can just remove the 200 status. |
The new generated code is ok, but I think the UI is not yet ready for the changes in this PR. Please let's open a PR for OH2-205 also on front-end side |
okay but I think we can close this PR so that I can continous with new task. I have update the spec file and I will share it with steve in other to update the api route on the front end side |
What I mean is that if we merge this, the front-end UI is automatically broken and we don't know for how long. I will not suggest this way of doing things... when the PR will be ready on the UI side, we will merge them together. You can continue with other tasks starting from develop, changes in this branch are not affecting the whole codebase, you will be able to rebase your work onto develop after the merge. |
Okay so I will create the task and attach the spec file on its. and assign it to steve so that he will align the front-end with the backend. |
Co-authored-by: Alessandro Domanico <alessandro.domanico@yahoo.it>
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.
Please review the comments
Co-authored-by: Alessandro Domanico <alessandro.domanico@yahoo.it>
Co-authored-by: David B Malkovsky <david@malkovsky.org>
Co-authored-by: David B Malkovsky <david@malkovsky.org>
Co-authored-by: David B Malkovsky <david@malkovsky.org>
Co-authored-by: Alessandro Domanico <alessandro.domanico@yahoo.it>
Co-authored-by: Alessandro Domanico <alessandro.domanico@yahoo.it>
* Update README.md with Swagger 3 instructions --------- Co-authored-by: ArnaudFonzam <101590821+ArnaudFonzam@users.noreply.github.com> Co-authored-by: David B Malkovsky <david@malkovsky.org>
Co-authored-by: Alessandro Domanico <alessandro.domanico@yahoo.it>
See OH2-205 and OH2-209.
This pull request is to solve the problem of code genation that are false by default, In other to avoid special character when we generate the specification code. I have also change PageResponseDTO with Page because the name is too long.
Paired with informatici/openhospital-core#1035.
TODO