aac.plugins.exclusive_fields

__init__.py module for the Exclusive fields plugin.

Functions

register_plugin()

Returns information about the plugin.

run_mutually_exclusive_fields(instance, ...)

Ensure that only one of the fields are defined at any time.

aac.plugins.exclusive_fields.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.exclusive_fields.run_mutually_exclusive_fields(instance: Any, definition: Definition, defining_schema, arguments: Any) ExecutionResult[source]

Ensure that only one of the fields are defined at any time.

Parameters:
  • instance (Any)

  • definition (Definition)

  • arguments (Any)

Return type:

ExecutionResult

Modules

exclusive_fields_impl

The AaC Exclusive fields plugin implementation module.