Skip to content

Align schema_0.24.yml with the 0.24 spec text - #128

Merged
kinlane merged 2 commits into
apis-json:developfrom
christiangoerdes:schema-0.24-align-spec
Oct 21, 2026
Merged

kinlane merged 2 commits into
apis-json:developfrom
christiangoerdes:schema-0.24-align-spec

Conversation

@christiangoerdes

@christiangoerdes christiangoerdes commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The schema (schema_0.24.yml) did not match the described spec. This PR aligns the schema with the apisjson_0.24.txt

christiangoerdes and others added 2 commits October 21, 2026 17:16
aid is marked Recommended in the 0.24 text and dropped from both required
lists in the schema: 72 of 151 live published indexes omit the root aid and
193 of their APIs omit one, so Mandatory would fail most real adopters.

OpenAPISource and "OpenAPI Source" are restored to the type pattern and
added to the synonyms listing; "OpenAPI Source" appears 1,289 times in a
3,000-file sample of published indexes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@kinlane kinlane left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this is a real help. schema_0.24.yml had drifted a long way from the 0.24 text, and this brings it back line by line.

I tested it before merging by validating two sets of files against the old schema, your version, and your version with the commit I pushed on top (5b8184b):

Files Old schema This PR as opened With 5b8184b
152 live published indexes (the apisjson.org showcase) 61 valid 40 valid 88 valid
3,000 apis.yml files from the API Evangelist catalog 1 valid 1,381 valid 1,659 valid

The commit I pushed does two things:

  1. aid is now Recommended, not Mandatory, in both the text and the schema. You were right that the text said Mandatory. But 72 of the 151 live indexes omit the root aid, and 193 of their APIs omit one, so requiring it would have failed most real adopters.
  2. OpenAPISource and OpenAPI Source are back in the type pattern, and both are now listed in the text's synonyms. "OpenAPI Source" appears 1,289 times in the catalog sample.

These mismatches were there before this PR, so they're follow-ups rather than blockers: the text says networks where the schema says network; the contact field names in the text (fn, org, x-twitter) differ from the ones its own examples and the schema use; and §3.9 Extensions still reads "TBD".

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.

2 participants