-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feature/openapi automatic #465
Conversation
f9e3ec1
to
e590c1c
Compare
Looks ok at the first glance. |
I might also rebase/redo my changes for #420 so we can land the automatic branch without any big changes afterwards (might be better for devs already using this lib to adjust only once). |
Sounds look a good plan, let's do it 👍 |
455e5cf
to
6c294a8
Compare
The ContentString serialization is fixed with #501 but the same test now fails with a 500 server error. |
I'll look into the test failure once your PR is merged |
I assume the problem is that we don't properly deserialize the parameters. OpenAPI can describe many ways to serialize values (https://swagger.io/docs/specification/serialization/) but we just assume something and then spec also doesn't say what it actually needs. |
Yep, server log confirms it: |
6c294a8
to
ff698ea
Compare
ff698ea
to
fae6432
Compare
The autocomplete test is still failing because we are not properly serializing the parameter. |
But this isn't a problem with dynamite?
The spec says it's a string (ContentString to be exact). After changing this the AutocompleteResult.status appears to also be wrong. |
I think the spec is wrong, but the correct definition is also not implemented in dynamite. |
I fixed the specs and when #522 is merged it will work correctly. The autocomplete tests is still broken because of a bug that was I fixed but that is only in 28+. |
fae6432
to
8eed662
Compare
We can still skip it until we switch to 28 |
The 28 release is still a while in the future :/ We don't use the autocomplete in Neon yet, so we could just merge it |
c20a918
to
db038aa
Compare
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.
Just reviewing the not generated code 😅
I'll still need to test it but it looks quite good.
I don't see any changes from my last review. |
Just approve :) Will push my rebase now |
Ah I forgot that I haven't pushed my changes yet 🙃 |
db038aa
to
865d41c
Compare
865d41c
to
e222ac5
Compare
@Leptopoda now you can review |
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.
🎉
Actually to also close #1 we need files_sharing |
Woop woop! A dream came true! ❤️ |
Closes #1
Closes #417
Depends on #462 #463 #464 and nextcloud/server#39223