Skip to content

Commit

Permalink
Add new optional/default from Supervisor 2021.01.0 release (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jan 17, 2021
1 parent e7c2350 commit cefb36a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
16 changes: 5 additions & 11 deletions src/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"type": "boolean"
},
"boot": {
"default": "auto",
"enum": ["auto", "manual"],
"type": "string"
},
Expand Down Expand Up @@ -144,6 +145,7 @@
},
"options": {
"additionalProperties": {},
"default": {},
"type": "object"
},
"panel_admin": {
Expand Down Expand Up @@ -185,6 +187,7 @@
},
"schema": {
"additionalProperties": {},
"default": {},
"type": "object"
},
"services": {
Expand All @@ -208,6 +211,7 @@
"type": "string"
},
"startup": {
"default": "application",
"enum": ["application", "initialize", "once", "services", "system"],
"type": "string"
},
Expand Down Expand Up @@ -248,16 +252,6 @@
"type": "string"
}
},
"required": [
"arch",
"boot",
"description",
"name",
"options",
"schema",
"slug",
"startup",
"version"
],
"required": ["arch", "description", "name", "slug", "version"],
"type": "object"
}
20 changes: 16 additions & 4 deletions src/config.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export interface Config {
*/
auto_uart?: boolean;

boot: "auto" | "manual";
/**
* @default auto
*/
boot?: "auto" | "manual";

description: string;

Expand Down Expand Up @@ -148,7 +151,10 @@ export interface Config {

name: string;

options: { [key: string]: any; };
/**
* @default {}
*/
options?: { [key: string]: any; };

/**
* @default true
Expand Down Expand Up @@ -181,7 +187,10 @@ export interface Config {

privileged?: "DAC_READ_SEARCH" | "NET_ADMIN" | "SYS_ADMIN" | "SYS_MODULE" | "SYS_NICE" | "SYS_PTRACE" | "SYS_RAWIO" | "SYS_RESOURCE" | "SYS_TIME";

schema: { [key: string]: any; };
/**
* @default {}
*/
schema?: { [key: string]: any; };

/**
* @items.pattern ^(?P<service>mqtt|mysql):(?P<rights>provide|want|need)$
Expand All @@ -197,7 +206,10 @@ export interface Config {
*/
stage?: "stable" | "experimental" | "deprecated";

startup: "application" | "initialize" | "once" | "services" | "system";
/**
* @default application
*/
startup?: "application" | "initialize" | "once" | "services" | "system";

/**
* @default false
Expand Down

0 comments on commit cefb36a

Please sign in to comment.