class documentation
class ValidationContext(object): (source)
Constructor: ValidationContext(ctx, inputs_property, operator)
Represents the validation context of an operator.
Parameters | |
ctx | the ExecutionContext |
inputs | the fiftyone.operators.types.Property of the
operator inputs |
operator | the fiftyone.operators.operator.Operator |
Method | __init__ |
Undocumented |
Method | add |
Adds a validation error. |
Method | exists |
Undocumented |
Method | to |
Returns a JSON dict representation of the context. |
Method | validate |
Validates an enum value. |
Method | validate |
Validates a list value. |
Method | validate |
Validates an object value. |
Method | validate |
Validates a primitive value. |
Method | validate |
Validates a property value. |
Instance Variable | ctx |
Undocumented |
Instance Variable | disable |
Undocumented |
Instance Variable | errors |
Undocumented |
Instance Variable | inputs |
Undocumented |
Instance Variable | invalid |
Undocumented |
Instance Variable | params |
Undocumented |
Method | _validate |
Undocumented |
Validates an enum value.
Parameters | |
path | the path to the property |
property | the fiftyone.operators.types.Property |
value | the value to validate |
Returns | |
a ValidationError , if the value is invalid |
Validates a list value.
Parameters | |
path | the path to the property |
property | the fiftyone.operators.types.Property |
value | the value to validate |
Returns | |
a ValidationError , if the value is invalid |
Validates an object value.
Parameters | |
path | the path to the property |
property | the fiftyone.operators.types.Property |
value | the value to validate |
Returns | |
a ValidationError , if the value is invalid |
Validates a primitive value.
Parameters | |
path | the path to the property |
property | the fiftyone.operators.types.Property |
value | the value to validate |
Returns | |
a ValidationError , if the value is invalid |
Validates a property value.
Parameters | |
path | the path to the property |
property | the fiftyone.operators.types.Property |
value | the value to validate |
Returns | |
a ValidationError , if the value is invalid |