Skip to content

Conversation

@Pierlou
Copy link
Contributor

@Pierlou Pierlou commented Aug 8, 2024

Fully tested with Swagger editor
New filters/operators added, including in, which fixes datagouv/data.gouv.fr#1408

@Pierlou Pierlou requested a review from maudetes August 8, 2024 15:03
"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/"),
Copy link
Contributor

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 ?

Copy link
Contributor

@maudetes maudetes left a 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! 🚀

Copy link
Contributor

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?

Copy link
Contributor Author

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)

@Pierlou Pierlou changed the title Better swagger Better swagger and new filters Aug 26, 2024
Copy link
Contributor

@maudetes maudetes left a 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!

@Pierlou Pierlou merged commit f389b83 into main Sep 3, 2024
@Pierlou Pierlou deleted the better-swagger branch September 3, 2024 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[api-tabular] Permettre de filtrer sur un champ avec un OR entre plusieurs value

4 participants