Skip to content

Measure the standard's examples against the standard's schemas - #59

Merged
estebanzimanyi merged 1 commit into
masterfrom
ats/published-examples
Aug 29, 2026
Merged

Measure the standard's examples against the standard's schemas#59
estebanzimanyi merged 1 commit into
masterfrom
ats/published-examples

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

Every example the OGC document publishes sits in a media-type object beside the schema it illustrates, so the pairing is the document's own and the test chooses nothing.

10 of the 16 examples paired with a named schema do not satisfy it. TestATSSchemaPublishedExamples asserts that count the way the nullable-rewrite count is asserted, so a change in the vendored document is noticed rather than absorbed; the per-example reasons are in its log. A seventeenth example is attached to an inline schema and is not compared.

The failures concentrate in two cells no document can meet: temporalPrimitiveValue.values is a single scalar beside a datetimes array of minItems: 2, and temporalProperty carries that value object. So the count measures the standard against itself — the examples are what a reader would write, and the schemas are what rejects them.

openapi/README.md carries the figure and the reason beside the two gaps it already records.

Every example the OGC document publishes sits in a media-type object beside the
schema it illustrates, so the pairing is the document's own and the test chooses
nothing. 10 of the 16 examples paired with a named schema do not satisfy it, and
`TestATSSchemaPublishedExamples` asserts that count the way the nullable-rewrite
count is asserted, so a change in the vendored document is noticed rather than
absorbed; a seventeenth example is attached to an inline schema and is not
compared. The failures concentrate in two cells no document can meet —
`temporalPrimitiveValue.values` is a single scalar beside a `datetimes` array of
`minItems: 2`, and `temporalProperty` carries that value object — so the count
measures the standard against itself, the examples being what a reader would
write. `openapi/README.md` carries the figure and the reason.
@estebanzimanyi
estebanzimanyi merged commit 2683d3d into master Aug 29, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the ats/published-examples branch August 29, 2026 21:38
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.

1 participant