Skip to content

Commit

Permalink
Merge pull request #2552 from posit-dev/dotnomad/dismissed_at
Browse files Browse the repository at this point in the history
Allow empty string for `dismissed_at` in schema
  • Loading branch information
dotNomad authored Jan 23, 2025
2 parents ef8bfbd + f0c3c7c commit bb3f909
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,18 @@
"examples": ["2024-01-19T09:33:33.131481-05:00"]
},
"dismissed_at": {
"type": "string",
"format": "date-time",
"description": "Date and time that the deployment process was dismissed. Will be empty if the deployment process was not dismissed.",
"examples": ["2024-01-19T09:33:33.131481-05:00"]
"examples": ["2024-01-19T09:33:33.131481-05:00"],
"anyOf": [
{
"type": "string",
"maxLength": 0
},
{
"type": "string",
"format": "date-time"
}
]
},
"deployed_at": {
"type": "string",
Expand Down
14 changes: 11 additions & 3 deletions internal/schema/schemas/posit-publishing-record-schema-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,18 @@
"examples": ["2024-01-19T09:33:33.131481-05:00"]
},
"dismissed_at": {
"type": "string",
"format": "date-time",
"description": "Date and time that the deployment process was dismissed. Will be empty if the deployment process was not dismissed.",
"examples": ["2024-01-19T09:33:33.131481-05:00"]
"examples": ["2024-01-19T09:33:33.131481-05:00"],
"anyOf": [
{
"type": "string",
"maxLength": 0
},
{
"type": "string",
"format": "date-time"
}
]
},
"deployed_at": {
"type": "string",
Expand Down

0 comments on commit bb3f909

Please sign in to comment.