Skip to content

Commit

Permalink
feat: Add missing date-time format to time fields (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helcaraxan committed Jul 1, 2022
1 parent a1b6506 commit b6bad6a
Show file tree
Hide file tree
Showing 48 changed files with 176 additions and 98 deletions.
Expand Up @@ -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": {
Expand Down
6 changes: 5 additions & 1 deletion payload-schemas/api.github.com/check_run/created.schema.json
Expand Up @@ -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": {
Expand Down
Expand Up @@ -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": {
Expand Down
Expand Up @@ -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": {
Expand Down
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions payload-schemas/api.github.com/common/deployment.schema.json
Expand Up @@ -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": {
Expand Down
6 changes: 4 additions & 2 deletions payload-schemas/api.github.com/common/discussion.schema.json
Expand Up @@ -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" }]
},
Expand Down
Expand Up @@ -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",
Expand Down
Expand Up @@ -25,15 +25,15 @@
"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" },
"external_identifier": { "type": "string" },
"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.",
Expand Down
Expand Up @@ -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" }]
Expand Down
Expand Up @@ -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" },
Expand Down
Expand Up @@ -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"
Expand Down
Expand Up @@ -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)"
Expand Down
Expand Up @@ -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,
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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": {
Expand Down
Expand Up @@ -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" }
},
Expand Down
Expand Up @@ -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" }
},
Expand Down
Expand Up @@ -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" }
},
Expand Down
Expand Up @@ -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" }
},
Expand Down
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
Expand Down
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
Expand Down
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
Expand Down
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
Expand Down
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
Expand Down
4 changes: 2 additions & 2 deletions payload-schemas/api.github.com/meta/deleted.schema.json
Expand Up @@ -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
},
Expand Down

0 comments on commit b6bad6a

Please sign in to comment.