Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 40 additions & 7 deletions cli/test/contract/testdata/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3559,7 +3559,8 @@
"schema": {
"type": "object",
"additionalProperties": {
"type": "integer"
"type": "integer",
"format": "int64"
}
}
},
Expand Down Expand Up @@ -6530,7 +6531,7 @@
}
},
"post": {
"description": "Create a new stack template (devops/admin only)",
"description": "Create a new stack template (devops/admin only). May include a `charts` array to register the initial chart set in the same transaction.",
"consumes": [
"application/json"
],
Expand All @@ -6543,20 +6544,20 @@
"summary": "Create a stack template",
"parameters": [
{
"description": "Template object",
"description": "Template object (may include charts[])",
"name": "template",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/models.StackTemplate"
"$ref": "#/definitions/handlers.createTemplateRequest"
}
}
],
"responses": {
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/models.StackTemplate"
"$ref": "#/definitions/handlers.TemplateDetailResponse"
}
},
"400": {
Expand Down Expand Up @@ -8178,15 +8179,15 @@
},
"/ws": {
"get": {
"description": "Upgrades the HTTP connection to a WebSocket for real-time events. Requires a valid JWT token via ?token= query parameter or Authorization: Bearer header.",
"description": "Upgrades the HTTP connection to a WebSocket for real-time events. Authenticate via one of: `Sec-WebSocket-Protocol: bearer, \u003cjwt\u003e` subprotocol header, `Authorization: Bearer \u003cjwt\u003e` header, or `?token=\u003cjwt\u003e` query parameter (the query token is redacted from access logs and traces by middleware before the handler runs).",
"tags": [
"websocket"
],
"summary": "Open a WebSocket connection",
"parameters": [
{
"type": "string",
"description": "JWT authentication token",
"description": "JWT authentication token (also accepted via Authorization header or Sec-WebSocket-Protocol subprotocol)",
"name": "token",
"in": "query"
}
Expand Down Expand Up @@ -9183,6 +9184,38 @@
}
}
},
"handlers.createTemplateRequest": {
"type": "object",
"required": [
"name"
],
"properties": {
"category": {
"type": "string"
},
"charts": {
"type": "array",
"items": {
"$ref": "#/definitions/models.TemplateChartConfig"
}
},
"default_branch": {
"type": "string"
},
"description": {
"type": "string"
},
"is_published": {
"type": "boolean"
},
"name": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"handlers.extendTTLRequest": {
"type": "object",
"properties": {
Expand Down