Fix Kits · Kin Score · 10 check points
Fix Kit: JSON Schema
Publish your data models as standalone JSON Schema, one per resource, so tools and agents can validate against them.
- Effort: An afternoon with the extraction script.
- Who needs it: of the providers each check applies to (apis.io, scored 2026-11-21, rubric 0.28.1): 100% miss “Publishes JSON Schema”; 100% miss “Schema per resource”.
- You get: the full kit (PDF and Markdown): how to find what your API really does, step-by-step fix, starter schemas, an OpenAPI Overlay that applies it across your contract, a script that checks your work exactly the way the scorer does, and docs-platform notes.
What the check measures
A schema that only lives inside an OpenAPI document can only be used through that document. Pull it out into its own file with its own $id, and anyone can validate a payload against it, generate a type from it, $ref it from an AsyncAPI document or a second API, or hand it to an agent that needs to build one valid object, all without loading your whole contract. Publishing one file per resource also shows the data model is decomposed rather than one catch-all blob.
Both checks read the apis.yml in your catalog repo. They don’t open the schema files.
| Check | Points | What earns it |
|---|---|---|
Publishes JSON Schema (json_schema_present) |
6 | At least one API in apis.yml has a property whose type is JSONSchema or JSON Schema |
Schema per resource (json_schema_per_resource) |
4 | One API in apis.yml has two or more properties of that type |
Exactly what counts:
- The pointer is what’s scored. The scorer counts
propertiesentries bytypeand never fetches theurl. That’s not a reason to point at nothing: a pointer to a missing file is the kind of thing a re-check and a human reviewer catch, and it helps nobody. - Per resource means per API entry. Two schemas on two different APIs don’t pass the 4-point check. The count is taken API by API, and one API must carry two or more. List every resource schema under the API that serves it.
- The type string is exact.
JSONSchemaandJSON Schemacount.jsonschema,JSON-SchemaandSchemadon’t. - No liveness grade. Unlike documentation or pricing pointers, these two checks aren’t graded on whether the URL resolves.
- A long
apis.ymlcan hide them. The scorer readsapis.ymlfrom the embedded copy on your provider page, which is cut at a size limit on very long files. An API entry past the cut isn’t read. If yourapis.ymlis large, keep the API that carries the schema pointers near the top.
How they’re credited:
- Provenance applies. Both checks are on the provenance list under the
json_schemaclass, so the award is multiplied by an authorship credit read from thejson-schema/folder in your catalog repo: 1.0 for first-party, 0.90 for unknown, 0.25 for derived. The scorer reads one file to decide:_index.ymlif there is one, otherwise the first.json,.ymlor.yamlfile by name that doesn’t start with_. - Unmarked files credit 0.90. Most of the
json-schema/folders in the catalog were written by API Evangelist’s pipeline from your OpenAPI and carry no marker, which gradesunknown. A file stampedmethod: derivedcredits 0.25. - First-party needs a marker the reader can see. The reader looks for a
method:line (at the top level, or underx-provenance), pluspublisher:andsource:lines for the provider’s own methods (declared,authored,published,self-reported). Thosepublisher:/source:patterns are written for YAML: in pretty-printed JSON the key is quoted ("publisher":), and the pattern doesn’t match. We couldn’t find a way for a.jsonschema to grade first-party on its own receipts, so to claim 1.0 put a YAML_index.ymlwith the marker in the folder (Step 5).
The rules are in signals/score.rb (json_schema_present, json_schema_per_resource) and the provenance class in signals/build_provenance.py. The rubric marks both checks catalog: API Evangelist can satisfy them from your OpenAPI without you. Publishing your own is how the credit becomes yours rather than ours.
The rule above is the public rubric (rubric page). The kit sells the working method: the steps, starters, overlay and check script.