aac.plugins.if_true_then_empty

__init__.py module for the If true then empty plugin.

Functions

register_plugin()

Returns information about the plugin.

run_if_true_then_empty(instance, definition, ...)

Check to ensure the empty_field_name is empty if bool_field_name is true.

aac.plugins.if_true_then_empty.register_plugin() None[source]

Returns information about the plugin.

Returns:

A collection of information about the plugin and what it contributes.

Return type:

None

aac.plugins.if_true_then_empty.run_if_true_then_empty(instance: Any, definition: Definition, defining_schema, arguments: Any) ExecutionResult[source]

Check to ensure the empty_field_name is empty if bool_field_name is true.

Parameters:
  • instance (Any)

  • definition (Definition)

  • arguments (Any)

Return type:

ExecutionResult

Modules

if_true_then_empty_impl

The AaC If true then empty plugin implementation module.