Commit graph

3 commits

Author SHA1 Message Date
Kévin Commaille 302a2e2461
Silence redocly-cli rule checking examples
`$ref` inside examples is non-compliant for OpenAPI / Json Schema, so
this rule fails to check the examples properly.

We already perform this check with
`scripts/check-event-schema-examples.py`.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2025-10-24 12:04:54 +02:00
Kévin Commaille 2678370f2c
Simplify uses of resolve-refs partial (#1773)
* Use the resolve-refs partial as soon as possible

Call it right after accessing the site.Data,
since it is recursing it will solve all references in the tree.
That way we don't need to wonder where to call it,
we trust the validators that the refs will be used in the right place.

* Enable strict $ref rule in OpenAPI validator

* Document use of $ref to compose examples

* Fix schema path in event-fields shortcode

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2024-04-09 18:06:53 +01:00
Kévin Commaille 3c5355a278
Use Redocly CLI to validate OpenAPI definitions (#1558) 2023-06-09 21:55:12 +03:00