Use VSCode + Prettier to reformat YAML
This commit includes settings for Visual Studio Code, so that at least different people with the same editor (or me on multiple machines) get the same formatting. No functional changes.
This commit is contained in:
parent
0cd478a409
commit
634d59e622
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@ -2,6 +2,7 @@
|
||||
"recommendations": [
|
||||
"golang.go",
|
||||
"alexcvzz.vscode-sqlite",
|
||||
"netcorext.uuid-generator"
|
||||
"netcorext.uuid-generator",
|
||||
"esbenp.prettier-vscode",
|
||||
]
|
||||
}
|
23
.vscode/settings.json
vendored
Normal file
23
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"go.coverOnSave": true,
|
||||
"go.coverOnTestPackage": true,
|
||||
"go.coverOnSingleTest": true,
|
||||
"go.coverageDecorator": {
|
||||
"type": "highlight",
|
||||
"coveredHighlightColor": "rgba(30, 64, 10, 0.06)",
|
||||
"coveredBorderColor": "rgba(30, 64, 10, 0.06)",
|
||||
"uncoveredHighlightColor": "rgba(146, 38, 20, 0.06)",
|
||||
"uncoveredBorderColor": "rgba(146, 38, 20, 0.06)",
|
||||
"coveredGutterStyle": "blockgreen",
|
||||
"uncoveredGutterStyle": "blockred"
|
||||
},
|
||||
"[yaml]": {
|
||||
"editor.insertSpaces": true,
|
||||
"editor.tabSize": 2,
|
||||
"editor.autoIndent": "keep",
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
},
|
||||
"[vue]": {
|
||||
"editor.defaultFormatter": "johnsoncodehk.volar",
|
||||
},
|
||||
}
|
@ -68,7 +68,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
/api/worker/sign-on:
|
||||
summary: Called by Workers to let the Manager know they're ready to work, and to update their metadata.
|
||||
@ -96,7 +96,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
/api/worker/sign-off:
|
||||
summary: Called by Workers to let the Manager know they're going offline.
|
||||
@ -113,7 +113,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
/api/worker/state:
|
||||
summary: Called by Workers to check whether there is any state change requested.
|
||||
@ -135,7 +135,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
/api/worker/state-changed:
|
||||
summary: Called by Workers to let the Manager know they've changed status.
|
||||
@ -159,7 +159,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
/api/worker/task:
|
||||
summary: Task scheduler endpoint.
|
||||
@ -219,7 +219,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
## Jobs
|
||||
|
||||
@ -349,7 +349,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
|
||||
## Shaman
|
||||
@ -378,7 +378,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
/shaman/checkout/create:
|
||||
summary: Symlink a set of files into the checkout area.
|
||||
@ -399,25 +399,25 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ShamanCheckoutResult'
|
||||
$ref: "#/components/schemas/ShamanCheckoutResult"
|
||||
"424":
|
||||
description: There were files missing. Use `shamanCheckoutRequirements` to figure out which ones.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
"409":
|
||||
description: Checkout already exists.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
default:
|
||||
description: unexpected error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
/shaman/files/{checksum}/{filesize}:
|
||||
summary: Upload files to the Shaman server.
|
||||
@ -448,7 +448,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
post:
|
||||
operationId: shamanFileStore
|
||||
@ -514,7 +514,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
tags:
|
||||
- name: meta
|
||||
@ -620,12 +620,32 @@ components:
|
||||
description: TaskUpdate is sent by a Worker to update the status & logs of a task it's executing.
|
||||
properties:
|
||||
taskStatus: { $ref: "#/components/schemas/TaskStatus", description: The new task status. }
|
||||
activity: {type: string, description: One-liner to indicate what's currently happening with the task. Overwrites previously sent activity strings.}
|
||||
activity:
|
||||
{
|
||||
type: string,
|
||||
description: One-liner to indicate what's currently happening with the task. Overwrites previously sent activity strings.,
|
||||
}
|
||||
log: { type: string, description: "Log lines for this task, will be appended to logs sent earlier." }
|
||||
|
||||
JobStatus:
|
||||
type: string
|
||||
enum: [active, canceled, completed, construction-failed, failed, paused, queued, archived, archiving, cancel-requested, fail-requested, requeued, under-construction, waiting-for-files]
|
||||
enum:
|
||||
[
|
||||
active,
|
||||
canceled,
|
||||
completed,
|
||||
construction-failed,
|
||||
failed,
|
||||
paused,
|
||||
queued,
|
||||
archived,
|
||||
archiving,
|
||||
cancel-requested,
|
||||
fail-requested,
|
||||
requeued,
|
||||
under-construction,
|
||||
waiting-for-files,
|
||||
]
|
||||
|
||||
TaskStatus:
|
||||
type: string
|
||||
@ -750,7 +770,7 @@ components:
|
||||
"project": "Sprite Fright"
|
||||
Job:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/SubmittedJob'
|
||||
- $ref: "#/components/schemas/SubmittedJob"
|
||||
- properties:
|
||||
id:
|
||||
type: string
|
||||
|
Loading…
x
Reference in New Issue
Block a user