-
Notifications
You must be signed in to change notification settings - Fork 0
Better swagger and new filters #23
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
tests/test_api.py
Outdated
| "prev": external_url( | ||
| "/api/resources/60963939-6ada-46bc-9a29-b288b16d969b/data/?page=1&page_size=1"), | ||
| "profile": external_url("/api/resources/60963939-6ada-46bc-9a29-b288b16d969b/profile/"), | ||
| "swagger": external_url("/api/resources/60963939-6ada-46bc-9a29-b288b16d969b/swagger/"), |
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.
maybe you can add a specific test for swagger ?
maudetes
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 haven't read the entire swagger building logic type by type but seems fair! 🚀
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.
Why did you modify this file?
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.
The previous csv/db that was loaded was not very relavant for the tests, as it was lacking multiple types, so I changed it to be able to test everything properly (and reduced the file's sizes)
maudetes
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.
Nice! I have a minor comment but it seemed to work nicely with real life examples as well!
Fully tested with Swagger editor
New filters/operators added, including
in, which fixes datagouv/data.gouv.fr#1408