From 7f39964833d9abc848de92692f4cf90da279cc1c Mon Sep 17 00:00:00 2001 From: Duco van Amstel Date: Thu, 30 Jun 2022 13:11:02 -0400 Subject: [PATCH] feat: Add missing date-time format to time fields --- .../check_run/completed.schema.json | 2 ++ .../check_run/created.schema.json | 6 +++++- .../check_run/requested_action.schema.json | 6 +++++- .../check_run/rerequested.schema.json | 2 ++ .../commit_comment/created.schema.json | 4 ++-- .../common/deployment.schema.json | 4 ++-- .../common/discussion.schema.json | 6 ++++-- .../common/marketplace-purchase.schema.json | 4 +++- ...itory-vulnerability-alert-alert.schema.json | 4 ++-- .../common/simple-pull-request.schema.json | 12 ++++++++---- .../common/sponsorship-tier.schema.json | 2 +- .../common/workflow-job.schema.json | 6 ++++-- .../common/workflow-step-completed.schema.json | 4 ++-- .../workflow-step-in_progress.schema.json | 2 +- .../deploy_key/created.schema.json | 2 +- .../deploy_key/deleted.schema.json | 2 +- .../deployment_status/created.schema.json | 4 ++-- .../discussion/category_changed.schema.json | 2 +- .../discussion_comment/created.schema.json | 4 ++-- .../discussion_comment/deleted.schema.json | 4 ++-- .../discussion_comment/edited.schema.json | 4 ++-- .../marketplace_purchase/cancelled.schema.json | 6 ++++-- .../marketplace_purchase/changed.schema.json | 6 ++++-- .../pending_change.schema.json | 6 ++++-- .../pending_change_cancelled.schema.json | 6 ++++-- .../marketplace_purchase/purchased.schema.json | 6 ++++-- .../api.github.com/meta/deleted.schema.json | 4 ++-- .../package/published.schema.json | 16 ++++++++-------- .../api.github.com/package/updated.schema.json | 16 ++++++++-------- .../page_build/event.schema.json | 4 ++-- .../api.github.com/ping/event.schema.json | 4 ++-- .../created.schema.json | 18 ++++++++++++++---- .../deleted.schema.json | 18 ++++++++++++++---- .../edited.schema.json | 18 ++++++++++++++---- .../secret_scanning_alert/resolved.schema.json | 2 +- .../security_advisory/performed.schema.json | 11 ++++++++--- .../security_advisory/published.schema.json | 11 ++++++++--- .../security_advisory/updated.schema.json | 11 ++++++++--- .../security_advisory/withdrawn.schema.json | 6 +++--- .../sponsorship/cancelled.schema.json | 2 +- .../sponsorship/created.schema.json | 2 +- .../sponsorship/edited.schema.json | 2 +- .../pending_cancellation.schema.json | 2 +- .../pending_tier_change.schema.json | 2 +- .../sponsorship/tier_changed.schema.json | 2 +- .../api.github.com/star/created.schema.json | 1 + .../api.github.com/status/event.schema.json | 4 ++-- payload-types/schema.d.ts | 2 +- 48 files changed, 176 insertions(+), 98 deletions(-) diff --git a/payload-schemas/api.github.com/check_run/completed.schema.json b/payload-schemas/api.github.com/check_run/completed.schema.json index e8803cde6..664bb76a5 100644 --- a/payload-schemas/api.github.com/check_run/completed.schema.json +++ b/payload-schemas/api.github.com/check_run/completed.schema.json @@ -57,10 +57,12 @@ }, "started_at": { "type": "string", + "format": "date-time", "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." }, "completed_at": { "type": "string", + "format": "date-time", "description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." }, "output": { diff --git a/payload-schemas/api.github.com/check_run/created.schema.json b/payload-schemas/api.github.com/check_run/created.schema.json index 6de66c44d..ea243a2f5 100644 --- a/payload-schemas/api.github.com/check_run/created.schema.json +++ b/payload-schemas/api.github.com/check_run/created.schema.json @@ -57,10 +57,14 @@ }, "started_at": { "type": "string", + "format": "date-time", "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." }, "completed_at": { - "type": ["string", "null"], + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], "description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." }, "output": { diff --git a/payload-schemas/api.github.com/check_run/requested_action.schema.json b/payload-schemas/api.github.com/check_run/requested_action.schema.json index b4d848b2b..5e82f90fc 100644 --- a/payload-schemas/api.github.com/check_run/requested_action.schema.json +++ b/payload-schemas/api.github.com/check_run/requested_action.schema.json @@ -63,10 +63,14 @@ }, "started_at": { "type": "string", + "format": "date-time", "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." }, "completed_at": { - "type": ["string", "null"], + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ], "description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." }, "output": { diff --git a/payload-schemas/api.github.com/check_run/rerequested.schema.json b/payload-schemas/api.github.com/check_run/rerequested.schema.json index ff6bb05cf..2149383ac 100644 --- a/payload-schemas/api.github.com/check_run/rerequested.schema.json +++ b/payload-schemas/api.github.com/check_run/rerequested.schema.json @@ -57,10 +57,12 @@ }, "started_at": { "type": "string", + "format": "date-time", "description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." }, "completed_at": { "type": "string", + "format": "date-time", "description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." }, "output": { diff --git a/payload-schemas/api.github.com/commit_comment/created.schema.json b/payload-schemas/api.github.com/commit_comment/created.schema.json index 521ca1483..5e9e3c4e2 100644 --- a/payload-schemas/api.github.com/commit_comment/created.schema.json +++ b/payload-schemas/api.github.com/commit_comment/created.schema.json @@ -56,8 +56,8 @@ "type": "string", "description": "The SHA of the commit to which the comment applies." }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "author_association": { "$ref": "common/author_association.schema.json" }, diff --git a/payload-schemas/api.github.com/common/deployment.schema.json b/payload-schemas/api.github.com/common/deployment.schema.json index 4c42c93b3..5bd9f95a5 100644 --- a/payload-schemas/api.github.com/common/deployment.schema.json +++ b/payload-schemas/api.github.com/common/deployment.schema.json @@ -37,8 +37,8 @@ "production_environment": { "type": "boolean" }, "description": { "type": ["string", "null"] }, "creator": { "$ref": "user.schema.json" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "statuses_url": { "type": "string", "format": "uri" }, "repository_url": { "type": "string", "format": "uri" }, "performed_via_github_app": { diff --git a/payload-schemas/api.github.com/common/discussion.schema.json b/payload-schemas/api.github.com/common/discussion.schema.json index 7d8eaedfa..c891ea577 100644 --- a/payload-schemas/api.github.com/common/discussion.schema.json +++ b/payload-schemas/api.github.com/common/discussion.schema.json @@ -45,14 +45,16 @@ "name": { "type": "string" }, "description": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string" }, + "updated_at": { "type": "string", "format": "date-time" }, "slug": { "type": "string" }, "is_answerable": { "type": "boolean" } }, "additionalProperties": false }, "answer_html_url": { "type": ["string", "null"] }, - "answer_chosen_at": { "type": ["string", "null"] }, + "answer_chosen_at": { + "oneOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, "answer_chosen_by": { "oneOf": [{ "$ref": "user.schema.json" }, { "type": "null" }] }, diff --git a/payload-schemas/api.github.com/common/marketplace-purchase.schema.json b/payload-schemas/api.github.com/common/marketplace-purchase.schema.json index d2ef04b3e..3250c8a8b 100644 --- a/payload-schemas/api.github.com/common/marketplace-purchase.schema.json +++ b/payload-schemas/api.github.com/common/marketplace-purchase.schema.json @@ -32,7 +32,9 @@ "billing_cycle": { "type": "string" }, "unit_count": { "type": "integer" }, "on_free_trial": { "type": "boolean" }, - "free_trial_ends_on": { "type": "null" }, + "free_trial_ends_on": { + "oneOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, "next_billing_date": { "type": "string" }, "plan": { "type": "object", diff --git a/payload-schemas/api.github.com/common/repository-vulnerability-alert-alert.schema.json b/payload-schemas/api.github.com/common/repository-vulnerability-alert-alert.schema.json index bb3d4521f..a3e4c32ce 100644 --- a/payload-schemas/api.github.com/common/repository-vulnerability-alert-alert.schema.json +++ b/payload-schemas/api.github.com/common/repository-vulnerability-alert-alert.schema.json @@ -25,7 +25,7 @@ "affected_package_name": { "type": "string" }, "dismisser": { "$ref": "user.schema.json" }, "dismiss_reason": { "type": "string" }, - "dismissed_at": { "type": "string" }, + "dismissed_at": { "type": "string", "format": "date-time" }, "severity": { "type": "string" }, "ghsa_id": { "type": "string" }, "external_reference": { "type": "string", "format": "uri" }, @@ -33,7 +33,7 @@ "fixed_in": { "type": "string" }, "fixed_at": { "type": "string", "format": "date-time" }, "fix_reason": { "type": "string" }, - "created_at": { "type": "string" } + "created_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "description": "The security alert of the vulnerable dependency.", diff --git a/payload-schemas/api.github.com/common/simple-pull-request.schema.json b/payload-schemas/api.github.com/common/simple-pull-request.schema.json index 9d2870fb4..9ace75a6e 100644 --- a/payload-schemas/api.github.com/common/simple-pull-request.schema.json +++ b/payload-schemas/api.github.com/common/simple-pull-request.schema.json @@ -54,10 +54,14 @@ "title": { "type": "string" }, "user": { "$ref": "user.schema.json" }, "body": { "type": "string" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, - "closed_at": { "type": ["string", "null"] }, - "merged_at": { "type": ["string", "null"] }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "closed_at": { + "oneOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, + "merged_at": { + "oneOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + }, "merge_commit_sha": { "type": ["string", "null"] }, "assignee": { "oneOf": [{ "$ref": "user.schema.json" }, { "type": "null" }] diff --git a/payload-schemas/api.github.com/common/sponsorship-tier.schema.json b/payload-schemas/api.github.com/common/sponsorship-tier.schema.json index 2a4351bbf..08ea2a127 100644 --- a/payload-schemas/api.github.com/common/sponsorship-tier.schema.json +++ b/payload-schemas/api.github.com/common/sponsorship-tier.schema.json @@ -15,7 +15,7 @@ "type": "object", "properties": { "node_id": { "type": "string" }, - "created_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, "description": { "type": "string" }, "monthly_price_in_cents": { "type": "integer" }, "monthly_price_in_dollars": { "type": "integer" }, diff --git a/payload-schemas/api.github.com/common/workflow-job.schema.json b/payload-schemas/api.github.com/common/workflow-job.schema.json index 6f53dbdf7..9ec46c294 100644 --- a/payload-schemas/api.github.com/common/workflow-job.schema.json +++ b/payload-schemas/api.github.com/common/workflow-job.schema.json @@ -71,8 +71,10 @@ "type": ["string", "null"], "description": "The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`." }, - "started_at": { "type": "string" }, - "completed_at": { "type": ["string", "null"] } + "started_at": { "type": "string", "format": "date-time" }, + "completed_at": { + "oneOf": [{ "type": "string", "format": "date-time" }, { "type": "null" }] + } }, "additionalProperties": false, "title": "Workflow Job" diff --git a/payload-schemas/api.github.com/common/workflow-step-completed.schema.json b/payload-schemas/api.github.com/common/workflow-step-completed.schema.json index 0c05621b0..f14b6d77c 100644 --- a/payload-schemas/api.github.com/common/workflow-step-completed.schema.json +++ b/payload-schemas/api.github.com/common/workflow-step-completed.schema.json @@ -18,8 +18,8 @@ "enum": ["failure", "skipped", "success"] }, "number": { "type": "integer" }, - "started_at": { "type": "string" }, - "completed_at": { "type": "string" } + "started_at": { "type": "string", "format": "date-time" }, + "completed_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false, "title": "Workflow Step (Completed)" diff --git a/payload-schemas/api.github.com/common/workflow-step-in_progress.schema.json b/payload-schemas/api.github.com/common/workflow-step-in_progress.schema.json index dd0af41c8..6a3b118e0 100644 --- a/payload-schemas/api.github.com/common/workflow-step-in_progress.schema.json +++ b/payload-schemas/api.github.com/common/workflow-step-in_progress.schema.json @@ -15,7 +15,7 @@ "status": { "type": "string", "enum": ["in_progress"] }, "conclusion": { "type": "null" }, "number": { "type": "integer" }, - "started_at": { "type": "string" }, + "started_at": { "type": "string", "format": "date-time" }, "completed_at": { "type": "null" } }, "additionalProperties": false, diff --git a/payload-schemas/api.github.com/deploy_key/created.schema.json b/payload-schemas/api.github.com/deploy_key/created.schema.json index 31440405c..b57a8b738 100644 --- a/payload-schemas/api.github.com/deploy_key/created.schema.json +++ b/payload-schemas/api.github.com/deploy_key/created.schema.json @@ -23,7 +23,7 @@ "url": { "type": "string", "format": "uri" }, "title": { "type": "string" }, "verified": { "type": "boolean" }, - "created_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, "read_only": { "type": "boolean" } }, "additionalProperties": false diff --git a/payload-schemas/api.github.com/deploy_key/deleted.schema.json b/payload-schemas/api.github.com/deploy_key/deleted.schema.json index 00697670b..45de2cf85 100644 --- a/payload-schemas/api.github.com/deploy_key/deleted.schema.json +++ b/payload-schemas/api.github.com/deploy_key/deleted.schema.json @@ -23,7 +23,7 @@ "url": { "type": "string", "format": "uri" }, "title": { "type": "string" }, "verified": { "type": "boolean" }, - "created_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, "read_only": { "type": "boolean" } }, "additionalProperties": false diff --git a/payload-schemas/api.github.com/deployment_status/created.schema.json b/payload-schemas/api.github.com/deployment_status/created.schema.json index 5667a183e..852206ace 100644 --- a/payload-schemas/api.github.com/deployment_status/created.schema.json +++ b/payload-schemas/api.github.com/deployment_status/created.schema.json @@ -53,8 +53,8 @@ "type": "string", "description": "The optional link added to the status." }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "deployment_url": { "type": "string", "format": "uri" }, "repository_url": { "type": "string", "format": "uri" }, "performed_via_github_app": { diff --git a/payload-schemas/api.github.com/discussion/category_changed.schema.json b/payload-schemas/api.github.com/discussion/category_changed.schema.json index eb60e13b2..b633d89d4 100644 --- a/payload-schemas/api.github.com/discussion/category_changed.schema.json +++ b/payload-schemas/api.github.com/discussion/category_changed.schema.json @@ -32,7 +32,7 @@ "name": { "type": "string" }, "description": { "type": "string" }, "created_at": { "type": "string", "format": "date-time" }, - "updated_at": { "type": "string" }, + "updated_at": { "type": "string", "format": "date-time" }, "slug": { "type": "string" }, "is_answerable": { "type": "boolean" } }, diff --git a/payload-schemas/api.github.com/discussion_comment/created.schema.json b/payload-schemas/api.github.com/discussion_comment/created.schema.json index 16ec5b701..8b7f7e3d8 100644 --- a/payload-schemas/api.github.com/discussion_comment/created.schema.json +++ b/payload-schemas/api.github.com/discussion_comment/created.schema.json @@ -41,8 +41,8 @@ "$ref": "common/author_association.schema.json" }, "user": { "$ref": "common/user.schema.json" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "body": { "type": "string" }, "reactions": { "$ref": "common/reactions.schema.json" } }, diff --git a/payload-schemas/api.github.com/discussion_comment/deleted.schema.json b/payload-schemas/api.github.com/discussion_comment/deleted.schema.json index 7e51b79da..2844aa6d4 100644 --- a/payload-schemas/api.github.com/discussion_comment/deleted.schema.json +++ b/payload-schemas/api.github.com/discussion_comment/deleted.schema.json @@ -41,8 +41,8 @@ "$ref": "common/author_association.schema.json" }, "user": { "$ref": "common/user.schema.json" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "body": { "type": "string" }, "reactions": { "$ref": "common/reactions.schema.json" } }, diff --git a/payload-schemas/api.github.com/discussion_comment/edited.schema.json b/payload-schemas/api.github.com/discussion_comment/edited.schema.json index 98ffd1c8b..280f65057 100644 --- a/payload-schemas/api.github.com/discussion_comment/edited.schema.json +++ b/payload-schemas/api.github.com/discussion_comment/edited.schema.json @@ -55,8 +55,8 @@ "$ref": "common/author_association.schema.json" }, "user": { "$ref": "common/user.schema.json" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "body": { "type": "string" }, "reactions": { "$ref": "common/reactions.schema.json" } }, diff --git a/payload-schemas/api.github.com/marketplace_purchase/cancelled.schema.json b/payload-schemas/api.github.com/marketplace_purchase/cancelled.schema.json index 1602885ce..362578d48 100644 --- a/payload-schemas/api.github.com/marketplace_purchase/cancelled.schema.json +++ b/payload-schemas/api.github.com/marketplace_purchase/cancelled.schema.json @@ -5,7 +5,7 @@ "required": ["action", "effective_date", "sender", "marketplace_purchase"], "properties": { "action": { "type": "string", "enum": ["cancelled"] }, - "effective_date": { "type": "string" }, + "effective_date": { "type": "string", "format": "date-time" }, "sender": { "type": "object", "required": [ @@ -56,7 +56,9 @@ { "type": "object", "required": ["next_billing_date"], - "properties": { "next_billing_date": { "type": "string" } }, + "properties": { + "next_billing_date": { "type": "string", "format": "date-time" } + }, "tsAdditionalProperties": false } ] diff --git a/payload-schemas/api.github.com/marketplace_purchase/changed.schema.json b/payload-schemas/api.github.com/marketplace_purchase/changed.schema.json index 9456eb2c7..9da44fdce 100644 --- a/payload-schemas/api.github.com/marketplace_purchase/changed.schema.json +++ b/payload-schemas/api.github.com/marketplace_purchase/changed.schema.json @@ -5,7 +5,7 @@ "required": ["action", "effective_date", "sender", "marketplace_purchase"], "properties": { "action": { "type": "string", "enum": ["changed"] }, - "effective_date": { "type": "string" }, + "effective_date": { "type": "string", "format": "date-time" }, "sender": { "type": "object", "required": [ @@ -56,7 +56,9 @@ { "type": "object", "required": ["next_billing_date"], - "properties": { "next_billing_date": { "type": "string" } }, + "properties": { + "next_billing_date": { "type": "string", "format": "date-time" } + }, "tsAdditionalProperties": false } ] diff --git a/payload-schemas/api.github.com/marketplace_purchase/pending_change.schema.json b/payload-schemas/api.github.com/marketplace_purchase/pending_change.schema.json index 4f37f6cf2..c17602347 100644 --- a/payload-schemas/api.github.com/marketplace_purchase/pending_change.schema.json +++ b/payload-schemas/api.github.com/marketplace_purchase/pending_change.schema.json @@ -5,7 +5,7 @@ "required": ["action", "effective_date", "sender", "marketplace_purchase"], "properties": { "action": { "type": "string", "enum": ["pending_change"] }, - "effective_date": { "type": "string" }, + "effective_date": { "type": "string", "format": "date-time" }, "sender": { "type": "object", "required": [ @@ -56,7 +56,9 @@ { "type": "object", "required": ["next_billing_date"], - "properties": { "next_billing_date": { "type": "string" } }, + "properties": { + "next_billing_date": { "type": "string", "format": "date-time" } + }, "tsAdditionalProperties": false } ] diff --git a/payload-schemas/api.github.com/marketplace_purchase/pending_change_cancelled.schema.json b/payload-schemas/api.github.com/marketplace_purchase/pending_change_cancelled.schema.json index 9b16e3ade..ca2aa1a09 100644 --- a/payload-schemas/api.github.com/marketplace_purchase/pending_change_cancelled.schema.json +++ b/payload-schemas/api.github.com/marketplace_purchase/pending_change_cancelled.schema.json @@ -5,7 +5,7 @@ "required": ["action", "effective_date", "sender", "marketplace_purchase"], "properties": { "action": { "type": "string", "enum": ["pending_change_cancelled"] }, - "effective_date": { "type": "string" }, + "effective_date": { "type": "string", "format": "date-time" }, "sender": { "type": "object", "required": [ @@ -56,7 +56,9 @@ { "type": "object", "required": ["next_billing_date"], - "properties": { "next_billing_date": { "type": "string" } }, + "properties": { + "next_billing_date": { "type": "string", "format": "date-time" } + }, "tsAdditionalProperties": false } ] diff --git a/payload-schemas/api.github.com/marketplace_purchase/purchased.schema.json b/payload-schemas/api.github.com/marketplace_purchase/purchased.schema.json index 970633e03..5c35509ef 100644 --- a/payload-schemas/api.github.com/marketplace_purchase/purchased.schema.json +++ b/payload-schemas/api.github.com/marketplace_purchase/purchased.schema.json @@ -5,7 +5,7 @@ "required": ["action", "effective_date", "sender", "marketplace_purchase"], "properties": { "action": { "type": "string", "enum": ["purchased"] }, - "effective_date": { "type": "string" }, + "effective_date": { "type": "string", "format": "date-time" }, "sender": { "type": "object", "required": [ @@ -56,7 +56,9 @@ { "type": "object", "required": ["next_billing_date"], - "properties": { "next_billing_date": { "type": "string" } }, + "properties": { + "next_billing_date": { "type": "string", "format": "date-time" } + }, "tsAdditionalProperties": false } ] diff --git a/payload-schemas/api.github.com/meta/deleted.schema.json b/payload-schemas/api.github.com/meta/deleted.schema.json index dda0b6fbc..9ebe582cb 100644 --- a/payload-schemas/api.github.com/meta/deleted.schema.json +++ b/payload-schemas/api.github.com/meta/deleted.schema.json @@ -39,8 +39,8 @@ }, "additionalProperties": false }, - "updated_at": { "type": "string" }, - "created_at": { "type": "string" } + "updated_at": { "type": "string", "format": "date-time" }, + "created_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, diff --git a/payload-schemas/api.github.com/package/published.schema.json b/payload-schemas/api.github.com/package/published.schema.json index 7c4042d5c..b79b262d1 100644 --- a/payload-schemas/api.github.com/package/published.schema.json +++ b/payload-schemas/api.github.com/package/published.schema.json @@ -30,8 +30,8 @@ "ecosystem": { "type": "string" }, "package_type": { "type": "string" }, "html_url": { "type": "string", "format": "uri" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "owner": { "$ref": "common/user.schema.json" }, "package_version": { "type": "object", @@ -93,8 +93,8 @@ "draft": { "type": "boolean" }, "author": { "$ref": "common/user.schema.json" }, "prerelease": { "type": "boolean" }, - "created_at": { "type": "string" }, - "published_at": { "type": "string" } + "created_at": { "type": "string", "format": "date-time" }, + "published_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, @@ -105,8 +105,8 @@ "target_oid": { "type": "string" }, "draft": { "type": "boolean" }, "prerelease": { "type": "boolean" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "array", "items": {} }, "docker_metadata": { "type": "array", "items": {} }, "package_files": { @@ -136,8 +136,8 @@ "content_type": { "type": "string" }, "state": { "type": "string" }, "size": { "type": "integer" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" } + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false } diff --git a/payload-schemas/api.github.com/package/updated.schema.json b/payload-schemas/api.github.com/package/updated.schema.json index f1cd818df..0a54193a6 100644 --- a/payload-schemas/api.github.com/package/updated.schema.json +++ b/payload-schemas/api.github.com/package/updated.schema.json @@ -30,8 +30,8 @@ "ecosystem": { "type": "string" }, "package_type": { "type": "string" }, "html_url": { "type": "string", "format": "uri" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "owner": { "$ref": "common/user.schema.json" }, "package_version": { "type": "object", @@ -93,8 +93,8 @@ "draft": { "type": "boolean" }, "author": { "$ref": "common/user.schema.json" }, "prerelease": { "type": "boolean" }, - "created_at": { "type": "string" }, - "published_at": { "type": "string" } + "created_at": { "type": "string", "format": "date-time" }, + "published_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, @@ -105,8 +105,8 @@ "target_oid": { "type": "string" }, "draft": { "type": "boolean" }, "prerelease": { "type": "boolean" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "metadata": { "type": "array", "items": {} }, "docker_metadata": { "type": "array", "items": {} }, "package_files": { @@ -136,8 +136,8 @@ "content_type": { "type": "string" }, "state": { "type": "string" }, "size": { "type": "integer" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" } + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false } diff --git a/payload-schemas/api.github.com/page_build/event.schema.json b/payload-schemas/api.github.com/page_build/event.schema.json index c872d7734..c7bcfb9b1 100644 --- a/payload-schemas/api.github.com/page_build/event.schema.json +++ b/payload-schemas/api.github.com/page_build/event.schema.json @@ -31,8 +31,8 @@ "pusher": { "$ref": "common/user.schema.json" }, "commit": { "type": "string" }, "duration": { "type": "integer" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" } + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, diff --git a/payload-schemas/api.github.com/ping/event.schema.json b/payload-schemas/api.github.com/ping/event.schema.json index 1a08496bd..9b84a42bf 100644 --- a/payload-schemas/api.github.com/ping/event.schema.json +++ b/payload-schemas/api.github.com/ping/event.schema.json @@ -46,8 +46,8 @@ }, "additionalProperties": false }, - "updated_at": { "type": "string" }, - "created_at": { "type": "string" }, + "updated_at": { "type": "string", "format": "date-time" }, + "created_at": { "type": "string", "format": "date-time" }, "url": { "type": "string", "format": "uri" }, "test_url": { "type": "string", "format": "uri" }, "ping_url": { "type": "string", "format": "uri" }, diff --git a/payload-schemas/api.github.com/pull_request_review_comment/created.schema.json b/payload-schemas/api.github.com/pull_request_review_comment/created.schema.json index 175b62538..1ef462c5d 100644 --- a/payload-schemas/api.github.com/pull_request_review_comment/created.schema.json +++ b/payload-schemas/api.github.com/pull_request_review_comment/created.schema.json @@ -58,10 +58,20 @@ "title": { "type": "string" }, "user": { "$ref": "common/user.schema.json" }, "body": { "type": "string" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, - "closed_at": { "type": ["string", "null"] }, - "merged_at": { "type": ["string", "null"] }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "closed_at": { + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ] + }, + "merged_at": { + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ] + }, "merge_commit_sha": { "type": ["string", "null"] }, "assignee": { "oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }] diff --git a/payload-schemas/api.github.com/pull_request_review_comment/deleted.schema.json b/payload-schemas/api.github.com/pull_request_review_comment/deleted.schema.json index 64e5123f7..44d485bc7 100644 --- a/payload-schemas/api.github.com/pull_request_review_comment/deleted.schema.json +++ b/payload-schemas/api.github.com/pull_request_review_comment/deleted.schema.json @@ -58,10 +58,20 @@ "title": { "type": "string" }, "user": { "$ref": "common/user.schema.json" }, "body": { "type": "string" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, - "closed_at": { "type": ["string", "null"] }, - "merged_at": { "type": ["string", "null"] }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "closed_at": { + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ] + }, + "merged_at": { + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ] + }, "merge_commit_sha": { "type": ["string", "null"] }, "assignee": { "oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }] diff --git a/payload-schemas/api.github.com/pull_request_review_comment/edited.schema.json b/payload-schemas/api.github.com/pull_request_review_comment/edited.schema.json index 4cbaf6f9a..7a5ba69bd 100644 --- a/payload-schemas/api.github.com/pull_request_review_comment/edited.schema.json +++ b/payload-schemas/api.github.com/pull_request_review_comment/edited.schema.json @@ -83,10 +83,20 @@ "title": { "type": "string" }, "user": { "$ref": "common/user.schema.json" }, "body": { "type": "string" }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, - "closed_at": { "type": ["string", "null"] }, - "merged_at": { "type": ["string", "null"] }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "closed_at": { + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ] + }, + "merged_at": { + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ] + }, "merge_commit_sha": { "type": ["string", "null"] }, "assignee": { "oneOf": [{ "$ref": "common/user.schema.json" }, { "type": "null" }] diff --git a/payload-schemas/api.github.com/secret_scanning_alert/resolved.schema.json b/payload-schemas/api.github.com/secret_scanning_alert/resolved.schema.json index 1f200dab2..731e65cf2 100644 --- a/payload-schemas/api.github.com/secret_scanning_alert/resolved.schema.json +++ b/payload-schemas/api.github.com/secret_scanning_alert/resolved.schema.json @@ -23,7 +23,7 @@ "enum": ["false_positive", "wontfix", "revoked", "used_in_tests"] }, "resolved_by": { "$ref": "common/user.schema.json" }, - "resolved_at": { "type": "string" } + "resolved_at": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, diff --git a/payload-schemas/api.github.com/security_advisory/performed.schema.json b/payload-schemas/api.github.com/security_advisory/performed.schema.json index 2f6ab65d1..e45e63891 100644 --- a/payload-schemas/api.github.com/security_advisory/performed.schema.json +++ b/payload-schemas/api.github.com/security_advisory/performed.schema.json @@ -69,9 +69,14 @@ "additionalProperties": false } }, - "published_at": { "type": "string" }, - "updated_at": { "type": "string" }, - "withdrawn_at": { "type": ["string", "null"] }, + "published_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "withdrawn_at": { + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ] + }, "vulnerabilities": { "type": "array", "items": { diff --git a/payload-schemas/api.github.com/security_advisory/published.schema.json b/payload-schemas/api.github.com/security_advisory/published.schema.json index 3752d0377..1e010bd57 100644 --- a/payload-schemas/api.github.com/security_advisory/published.schema.json +++ b/payload-schemas/api.github.com/security_advisory/published.schema.json @@ -69,9 +69,14 @@ "additionalProperties": false } }, - "published_at": { "type": "string" }, - "updated_at": { "type": "string" }, - "withdrawn_at": { "type": ["string", "null"] }, + "published_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "withdrawn_at": { + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ] + }, "vulnerabilities": { "type": "array", "items": { diff --git a/payload-schemas/api.github.com/security_advisory/updated.schema.json b/payload-schemas/api.github.com/security_advisory/updated.schema.json index dfb0e6b23..a40fc2c67 100644 --- a/payload-schemas/api.github.com/security_advisory/updated.schema.json +++ b/payload-schemas/api.github.com/security_advisory/updated.schema.json @@ -69,9 +69,14 @@ "additionalProperties": false } }, - "published_at": { "type": "string" }, - "updated_at": { "type": "string" }, - "withdrawn_at": { "type": ["string", "null"] }, + "published_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "withdrawn_at": { + "oneOf": [ + { "type": "string", "format": "date-time" }, + { "type": "null" } + ] + }, "vulnerabilities": { "type": "array", "items": { diff --git a/payload-schemas/api.github.com/security_advisory/withdrawn.schema.json b/payload-schemas/api.github.com/security_advisory/withdrawn.schema.json index 5cbafeb67..182fc6cea 100644 --- a/payload-schemas/api.github.com/security_advisory/withdrawn.schema.json +++ b/payload-schemas/api.github.com/security_advisory/withdrawn.schema.json @@ -69,9 +69,9 @@ "additionalProperties": false } }, - "published_at": { "type": "string" }, - "updated_at": { "type": "string" }, - "withdrawn_at": { "type": "string" }, + "published_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "withdrawn_at": { "type": "string", "format": "date-time" }, "vulnerabilities": { "type": "array", "items": { diff --git a/payload-schemas/api.github.com/sponsorship/cancelled.schema.json b/payload-schemas/api.github.com/sponsorship/cancelled.schema.json index a9eb15292..f58c90bb3 100644 --- a/payload-schemas/api.github.com/sponsorship/cancelled.schema.json +++ b/payload-schemas/api.github.com/sponsorship/cancelled.schema.json @@ -17,7 +17,7 @@ ], "properties": { "node_id": { "type": "string" }, - "created_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, "sponsorable": { "$ref": "common/user.schema.json" }, "sponsor": { "$ref": "common/user.schema.json" }, "privacy_level": { "type": "string" }, diff --git a/payload-schemas/api.github.com/sponsorship/created.schema.json b/payload-schemas/api.github.com/sponsorship/created.schema.json index fb7e75f59..071ffe15a 100644 --- a/payload-schemas/api.github.com/sponsorship/created.schema.json +++ b/payload-schemas/api.github.com/sponsorship/created.schema.json @@ -17,7 +17,7 @@ ], "properties": { "node_id": { "type": "string" }, - "created_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, "sponsorable": { "$ref": "common/user.schema.json" }, "sponsor": { "$ref": "common/user.schema.json" }, "privacy_level": { "type": "string" }, diff --git a/payload-schemas/api.github.com/sponsorship/edited.schema.json b/payload-schemas/api.github.com/sponsorship/edited.schema.json index ae5f10ad9..4781d06a3 100644 --- a/payload-schemas/api.github.com/sponsorship/edited.schema.json +++ b/payload-schemas/api.github.com/sponsorship/edited.schema.json @@ -17,7 +17,7 @@ ], "properties": { "node_id": { "type": "string" }, - "created_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, "sponsorable": { "$ref": "common/user.schema.json" }, "sponsor": { "$ref": "common/user.schema.json" }, "privacy_level": { "type": "string" }, diff --git a/payload-schemas/api.github.com/sponsorship/pending_cancellation.schema.json b/payload-schemas/api.github.com/sponsorship/pending_cancellation.schema.json index b41a0c6c3..fee6c3ffe 100644 --- a/payload-schemas/api.github.com/sponsorship/pending_cancellation.schema.json +++ b/payload-schemas/api.github.com/sponsorship/pending_cancellation.schema.json @@ -17,7 +17,7 @@ ], "properties": { "node_id": { "type": "string" }, - "created_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, "sponsorable": { "$ref": "common/user.schema.json" }, "sponsor": { "$ref": "common/user.schema.json" }, "privacy_level": { "type": "string" }, diff --git a/payload-schemas/api.github.com/sponsorship/pending_tier_change.schema.json b/payload-schemas/api.github.com/sponsorship/pending_tier_change.schema.json index 16c16801a..27c468cfe 100644 --- a/payload-schemas/api.github.com/sponsorship/pending_tier_change.schema.json +++ b/payload-schemas/api.github.com/sponsorship/pending_tier_change.schema.json @@ -17,7 +17,7 @@ ], "properties": { "node_id": { "type": "string" }, - "created_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, "sponsorable": { "$ref": "common/user.schema.json" }, "sponsor": { "$ref": "common/user.schema.json" }, "privacy_level": { "type": "string" }, diff --git a/payload-schemas/api.github.com/sponsorship/tier_changed.schema.json b/payload-schemas/api.github.com/sponsorship/tier_changed.schema.json index c29fb6880..032e2b365 100644 --- a/payload-schemas/api.github.com/sponsorship/tier_changed.schema.json +++ b/payload-schemas/api.github.com/sponsorship/tier_changed.schema.json @@ -17,7 +17,7 @@ ], "properties": { "node_id": { "type": "string" }, - "created_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, "sponsorable": { "$ref": "common/user.schema.json" }, "sponsor": { "$ref": "common/user.schema.json" }, "privacy_level": { "type": "string" }, diff --git a/payload-schemas/api.github.com/star/created.schema.json b/payload-schemas/api.github.com/star/created.schema.json index 90ec49783..8d64079b6 100644 --- a/payload-schemas/api.github.com/star/created.schema.json +++ b/payload-schemas/api.github.com/star/created.schema.json @@ -7,6 +7,7 @@ "action": { "type": "string", "enum": ["created"] }, "starred_at": { "type": "string", + "format": "date-time", "description": "The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` action." }, "repository": { "$ref": "common/repository.schema.json" }, diff --git a/payload-schemas/api.github.com/status/event.schema.json b/payload-schemas/api.github.com/status/event.schema.json index 1580c6253..d34f0be41 100644 --- a/payload-schemas/api.github.com/status/event.schema.json +++ b/payload-schemas/api.github.com/status/event.schema.json @@ -179,8 +179,8 @@ "additionalProperties": false } }, - "created_at": { "type": "string" }, - "updated_at": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, "repository": { "$ref": "common/repository.schema.json" }, "sender": { "$ref": "common/user.schema.json" }, "installation": { "$ref": "common/installation-lite.schema.json" }, diff --git a/payload-types/schema.d.ts b/payload-types/schema.d.ts index 3149dc19f..cd6fc08f1 100644 --- a/payload-types/schema.d.ts +++ b/payload-types/schema.d.ts @@ -3426,7 +3426,7 @@ export interface MarketplacePurchase { billing_cycle: string; unit_count: number; on_free_trial: boolean; - free_trial_ends_on: null; + free_trial_ends_on: string | null; next_billing_date?: string; plan: { id: number;