-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(asc): add json schema cmd and output
This commit adds a command to output a JSON Schema for the applications.yaml file maintained in the komorebi-application-specific-configuration repo, and also adds an up-to-date version of the JSON Schema as a file in the root of this repository so that users can reference it as an autocompletion source.
- Loading branch information
Showing
4 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "Array_of_ApplicationConfiguration", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ApplicationConfiguration" | ||
}, | ||
"definitions": { | ||
"ApplicationConfiguration": { | ||
"type": "object", | ||
"required": [ | ||
"identifier", | ||
"name" | ||
], | ||
"properties": { | ||
"float_identifiers": { | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"$ref": "#/definitions/IdWithIdentifierAndComment" | ||
} | ||
}, | ||
"identifier": { | ||
"$ref": "#/definitions/IdWithIdentifier" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"options": { | ||
"type": [ | ||
"array", | ||
"null" | ||
], | ||
"items": { | ||
"$ref": "#/definitions/ApplicationOptions" | ||
} | ||
} | ||
} | ||
}, | ||
"ApplicationIdentifier": { | ||
"type": "string", | ||
"enum": [ | ||
"Exe", | ||
"Class", | ||
"Title" | ||
] | ||
}, | ||
"ApplicationOptions": { | ||
"type": "string", | ||
"enum": [ | ||
"object_name_change", | ||
"layered", | ||
"border_overflow", | ||
"tray_and_multi_window", | ||
"force" | ||
] | ||
}, | ||
"IdWithIdentifier": { | ||
"type": "object", | ||
"required": [ | ||
"id", | ||
"kind" | ||
], | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"$ref": "#/definitions/ApplicationIdentifier" | ||
}, | ||
"matching_strategy": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/MatchingStrategy" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"IdWithIdentifierAndComment": { | ||
"type": "object", | ||
"required": [ | ||
"id", | ||
"kind" | ||
], | ||
"properties": { | ||
"comment": { | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"kind": { | ||
"$ref": "#/definitions/ApplicationIdentifier" | ||
}, | ||
"matching_strategy": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/MatchingStrategy" | ||
}, | ||
{ | ||
"type": "null" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"MatchingStrategy": { | ||
"type": "string", | ||
"enum": [ | ||
"Legacy", | ||
"Equals", | ||
"StartsWith", | ||
"EndsWith", | ||
"Contains", | ||
"Regex" | ||
] | ||
} | ||
} | ||
} |