Commit Graph

2 Commits

Author SHA1 Message Date
Jan Sandbrink bb46732d61 Validate schema of examples stored outside of schema definition
Those are usually linked through other OpenAPI specification
documents and different examples can refer to the same specification.

Fixed violations along the way, most of them were typos in either the
schema or the example. In one case a wrong schema was referenced, most likely
because the name was sufficiently confusing. The reference went to
`query_filter_instance_schema_model`, when it should have been `query_filter_instance_model`.
Sadly, the latter didn't even exist as a schema. I changed the reference and added a schema
based on what I could find in our implemented representer. It was consistent with examples.
2025-12-18 15:55:58 +01:00
Jan Sandbrink c1722373c4 Validate schema of embedded examples in a spec
Our schemas often contain embedded examples that show what a representation
will look like.
These specs ensure that those embedded examples conform to the schema
that they are an example for.

Some collection examples contained abbreviated examples for what they look like.
To support these, the previously added _hint key was replaced with an explicit
_abbreviated key and examples that include this key are skipped.
2025-12-16 10:08:24 +01:00