Wants seat: the backup answer of a want is again or skip (ADR 0634; issue 1966)
This commit is contained in:
@@ -286,6 +286,12 @@ type WantsByWantNodeModuleValue struct {
|
||||
Yes string `json:"yes,omitempty"`
|
||||
}
|
||||
|
||||
// The values of WantsByWantNodeModuleValue's backup.
|
||||
const (
|
||||
WantsByWantNodeModuleValueBackupAgain = "again"
|
||||
WantsByWantNodeModuleValueBackupSkip = "skip"
|
||||
)
|
||||
|
||||
// WantsByWantNodeNodeValue is one value of the state wants under the key want.<node>.node.
|
||||
type WantsByWantNodeNodeValue struct {
|
||||
Composed string `json:"composed"`
|
||||
|
||||
@@ -97,7 +97,11 @@
|
||||
},
|
||||
"backup": {
|
||||
"type": "string",
|
||||
"description": "again or skip"
|
||||
"description": "again or skip",
|
||||
"enum": [
|
||||
"again",
|
||||
"skip"
|
||||
]
|
||||
},
|
||||
"words": {
|
||||
"type": "string"
|
||||
|
||||
@@ -149,7 +149,7 @@ export type PolicyChangedEvent = Record<string, unknown>;
|
||||
/** is one value of the state wants under the key want.<node>.<module>. */
|
||||
export interface WantsByWantNodeModuleValue {
|
||||
/** again or skip */
|
||||
"backup"?: string;
|
||||
"backup"?: "again" | "skip";
|
||||
"composed"?: string;
|
||||
"fp"?: string;
|
||||
"hold"?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user