[Schema Inaccuracy] owner
property in the full-repository
schema should not be nullable
#270
Labels
owner
property in the full-repository
schema should not be nullable
#270
Schema Inaccuracy
On the schema, located at
components['schemas']['full-repository']
, the value ofowner
can benull
. However, a repo has to be owned, sonull
shouldn't be here.Expected
owner
should be only anobject
(components['schemas']['simple-user']
), not anobject
ornull
"full-repository": { "title": "Full Repository", "description": "Full Repository", "type": "object", "properties": { "id": { "type": "integer", "example": 1296269 }, ... "full_name": { "type": "string", "example": "octocat/Hello-World" }, "owner": { - "nullable": true, "allOf": [ { "$ref": "#/components/schemas/simple-user" } ] }, "private": { "type": "boolean" }, ... }
Reproduction Steps
This issue manifests itself in downstream consumers of the OpenAPI schema, example, when TypeScript types are generated from this schema in @octokit/openapi-types
/ref octokit/rest.js#2074
The text was updated successfully, but these errors were encountered: