Skip to content

Commit

Permalink
fix: make updated_at & expires_at nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
helmturner committed May 16, 2024
1 parent edbcf93 commit cee0a95
Showing 1 changed file with 25 additions and 73 deletions.
98 changes: 25 additions & 73 deletions public/docs/api/v0/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,47 +313,34 @@
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": ["topic", "project"]
},
"schema": { "type": "string", "enum": ["topic", "project"] },
"description": "Filter items by type"
},
"ProposalStatusFilter": {
"name": "status",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": ["open", "closed"]
},
"schema": { "type": "string", "enum": ["open", "closed"] },
"description": "Filter items by status"
},
"AuthorizationRequired": {
"name": "Authorization",
"in": "header",
"required": true,
"schema": {
"type": "string"
}
"schema": { "type": "string" }
},
"AuthorizationOptional": {
"name": "Authorization",
"in": "header",
"required": false,
"schema": {
"type": "string"
}
"schema": { "type": "string" }
},
"RecordId": {
"name": "recordId",
"in": "query",
"required": true,
"description": "ID of the record to get, update, or delete",
"schema": {
"type": "integer",
"format": "int32"
}
"schema": { "type": "integer", "format": "int32" }
}
},
"responses": {
Expand Down Expand Up @@ -388,39 +375,23 @@
"type": "object",
"required": ["id", "created"],
"properties": {
"id": {
"type": "integer",
"format": "int32"
},
"created": {
"type": "string",
"format": "date-time"
},
"id": { "type": "integer", "format": "int32" },
"created": { "type": "string", "format": "date-time" },
"updated": {
"type": "string",
"format": "date-time"
"oneOf": [
{ "type": "null" },
{ "type": "string", "format": "date-time" }
]
}
}
},
"Draft": {
"type": "object",
"properties": {
"title": {
"type": "string",
"maxLength": 48
},
"summary": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 2048
},
"type": {
"type": "string",
"enum": ["topic", "project"]
}
"title": { "type": "string", "maxLength": 48 },
"summary": { "type": "string", "maxLength": 255 },
"description": { "type": "string", "maxLength": 2048 },
"type": { "type": "string", "enum": ["topic", "project"] }
}
},
"DraftIndex": {
Expand All @@ -447,24 +418,10 @@
"type": "object",
"required": ["title", "summary", "type"],
"properties": {
"title": {
"type": "string",
"minLength": 8,
"maxLength": 48
},
"summary": {
"type": "string",
"minLength": 30,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 2048
},
"type": {
"type": "string",
"enum": ["topic", "project"]
}
"title": { "type": "string", "minLength": 8, "maxLength": 48 },
"summary": { "type": "string", "minLength": 30, "maxLength": 255 },
"description": { "type": "string", "maxLength": 2048 },
"type": { "type": "string", "enum": ["topic", "project"] }
}
},
"ProposalState": {
Expand Down Expand Up @@ -523,19 +480,18 @@
"type": "string",
"enum": ["-2", "-1", "0", "1", "2"]
},
"comment": {
"type": "string",
"maxLength": 255
}
"comment": { "type": "string", "maxLength": 255 }
}
},
"Expirable": {
"type": "object",
"required": ["expires"],
"properties": {
"expires": {
"type": "string",
"format": "date-time"
"oneOf": [
{ "type": "null" },
{ "type": "string", "format": "date-time" }
]
}
}
},
Expand All @@ -558,11 +514,7 @@
"Error": {
"type": "object",
"required": ["message"],
"properties": {
"message": {
"type": "string"
}
}
"properties": { "message": { "type": "string" } }
}
}
}
Expand Down

0 comments on commit cee0a95

Please sign in to comment.