-
Notifications
You must be signed in to change notification settings - Fork 17
Openapi 3 #83
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
Conversation
|
urgh, now I see #64 |
I think we can close that one that is now outdated, and concentrate on this one. |
|
@butonic could you please rebase this? I think it's very valuable at this stage - and with no outstanding change/tuning of the specs - to move to OpenAPI. And we could then envisage to tag OCM v1.2.0. |
|
Current version of spec can easily be converted to openapi 3 using the following command: |
|
I ran that and pushed it to the |
glpatcern
left a comment
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 ran that and pushed it to the
openapi3branch. Does https://cs3org.github.io/OCM-API/docs.html?branch=openapi3&repo=OCM-API&user=cs3org#/paths/~1invite-accepted/post look OK? If so we can switch to it!
Well, again we have quite a number of ongoing PRs, and this branch is already in conflict with the current HEAD. I'd postpone this until we settle them (and before tagging 1.2).
…com/cs3org/OCM-API/develop/spec.yaml --outfile spec.yaml -t 3.0.3
0d8a7bb to
0d31b2c
Compare
|
I ran the script on latest |
|
Ah, https://cs3org.github.io/OCM-API/docs.html?branch=openapi-3&repo=OCM-API&user=cs3org looks OK I think? |
Yes! Looks good to me! |
mickenordin
left a comment
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.
It is very hard to follow all the changes in detail, but looking at the spec viewer I don't see any apparent errors at least.
glpatcern
left a comment
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've just removed the empty lines, otherwise as Micke said it's hard to follow the changes but as long as the rendering looks correct let's go!
I was confused by the examples for
/shareand converted the spec from swagger to openapi which allows using multiple examples. IMO we should update to openapi to better document how the api should be used.This PR consists of four commits:
application/hal+jsonfor a lot of responses, but I don't know how critical that is)Let me know what you think.