-
Notifications
You must be signed in to change notification settings - Fork 306
Open
Labels
Description
Schema Inaccuracy
/repos/{owner}/{repo}/releases/{release_id} PATCH defines this request body property (line 60940 in https://github.com/github/rest-api-description/blob/main/descriptions/api.github.com/api.github.com.json):
"make_latest": {
"type": "string",
"description": "Specifies whether this release should be set as the latest release for the repository. ....",
"enum": [
"true",
"false",
"legacy"
],
"default": true
},The default value true is not quoted.
I currently work on the default value handling in Kiota. Previously, default values without quotes were ignored. But as they are processed now, too, the invalid default value causes a syntax error in the generated code. But maybe we handle enums differently anyway, and then this problem would disappear for me.
Expected
"make_latest": {
"type": "string",
"description": "Specifies ....",
"enum": [
"true",
"false",
"legacy"
],
"default": "true"
},Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.