Schema Inaccuracy
The repos/update-release operation has a boolean default value for a string-type field. The make_latest parameter is defined as type: "string" with enum ["true", "false", "legacy"], but has default: true (boolean) instead of default: "true" (string).
This is inconsistent with the repos/create-release operation which correctly uses the string default "true".
Expected
{
"make_latest": {
"type": "string",
"enum": ["true", "false", "legacy"],
"default": "true"
}
}
Reproduction Steps
jq '.paths["/repos/{owner}/{repo}/releases/{release_id}"].patch.requestBody.content["application/json"].schema.properties.make_latest' descriptions/api.github.com/api.github.com.json
Shows "default": true (boolean) instead of "default": "true" (string).
Compare with the correct version:
jq '.paths["/repos/{owner}/{repo}/releases"].post.requestBody.content["application/json"].schema.properties.make_latest' descriptions/api.github.com/api.github.com.json
Shows "default": "true" (string).