Skip to content

Instantly share code, notes, and snippets.

@chantra
Last active January 24, 2023 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chantra/ecc9a535ad8056eea6ef0a40bcc8a4df to your computer and use it in GitHub Desktop.
Save chantra/ecc9a535ad8056eea6ef0a40bcc8a4df to your computer and use it in GitHub Desktop.
rest-api-description.diff
diff --git a/specs/github/api.github.com.json b/specs/github/api.github.com.json
index 2d1fb6f..e8a930f 100644
--- a/specs/github/api.github.com.json
+++ b/specs/github/api.github.com.json
@@ -20156,7 +20156,7 @@
"$ref": "#/components/parameters/page"
},
{
- "$ref": "#/components/parameters/created"
+ "$ref": "#/components/parameters/created-range"
}
],
"responses": {
@@ -95418,6 +95418,16 @@
"format": "date-time"
}
},
+ "created-range": {
+ "name": "created",
+ "in": "query",
+ "description": "Returns items created within the date-time range. For more information on the syntax, see [\"Understanding the search syntax.\"](https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "github-date-time-range"
+ }
+ },
"run-id": {
"name": "run_id",
"description": "The id of the workflow run.",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment