I’m not sure if this is the best place to submit such feedback, but the relevant Github repository has closed the Issue submission portal, so I try to give feedback here.
GitHub - discourse/discourse_api_docs: Discourse API Documentation · GitHub
The openapi.json file hosted at GitHub - discourse/discourse_api_docs: Discourse API Documentation · GitHub is actually not a valid openapi file.
See more info here Discourse openapi.json generate issue · Issue #277 · mattpolzin/OpenAPIKit · GitHub
TL,DR ![]()
The
itemskey for anarrayschema"MUST be a valid JSON Schema"(json-schema.org/draft/2020-12/json-schema-core.html#section-10.3.1.2-1) and a JSON Schema"MUST be an object or a boolean"(json-schema.org/draft/2020-12/json-schema-core.html#section-4.3-2). Because this part of the OpenAPI Document is governed by JSON Schema rules, they likely don’t bother mentioning too many of those rules inside the OpenAPI specification itself.