#[non_exhaustive]pub enum RefusalRule {
Show 20 variants
Type {
expected: Vec<String>,
},
Const {
value: Value,
},
Enum {
values: Vec<Value>,
},
ClosedOption,
Credential,
Variant,
Expansion,
Reference,
MinLength {
bound: u64,
},
MaxLength {
bound: u64,
},
Pattern {
pattern: String,
},
Minimum {
bound: Number,
exclusive: bool,
},
Maximum {
bound: Number,
exclusive: bool,
},
MinItems {
bound: u64,
},
MaxItems {
bound: u64,
},
UniqueItems,
DuplicateId,
Undeclared,
Required {
key: String,
},
Bound {
bound: Bound,
},
}Expand description
The rule a refused settings value broke, with the bound or the allowed values the schema declares. It never holds the refused value itself.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Type
type: the value, or a null, is not one of these JSON types.
Const
const: only this value is allowed.
Enum
enum: only these values are allowed.
ClosedOption
x-ck-options with closed: the value is not among the offered options.
Credential
x-ck-kind: credential_ref: only a vault reference is allowed.
Variant
oneOf: the value matches none of the tagged variants.
Expansion
Text holds an {env:...} or {file:...} expansion.
Reference
An object is the old {"env": ...} or {"file": ...} reference form.
MinLength
minLength, counted in characters.
MaxLength
maxLength, counted in characters.
Pattern
pattern: text must match this regular expression.
Minimum
minimum, or exclusiveMinimum when exclusive.
Maximum
maximum, or exclusiveMaximum when exclusive.
MinItems
minItems.
MaxItems
maxItems.
UniqueItems
uniqueItems: two list items are the same value.
DuplicateId
Two list items carry the same id.
Undeclared
The object key is not declared by the schema.
Required
required or x-ck-required: the key is missing.
Bound
x-ck-bound: a workspace or project value moves the inherited value
the way the bound forbids.