Look for examples in all possible locations (#2076)

We used to only look for examples in a few (sometimes arbitrary) places, and we didn't support showing several examples in most cases. This is intended to fix this. In the process we try to deduplicate code to make sure that we use the same logic everywhere.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2025-03-05 10:44:59 +01:00 committed by GitHub
parent 4ff9a851e6
commit 3adbfa30da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 226 additions and 220 deletions

View file

@ -0,0 +1 @@
Support more locations for examples in OpenAPI definitions and JSON schemas.