A class representing a set of fields in a space.

Constructor

SpaceFieldSet(space, fields, allowed_param_types=None)

Parameters

space
Space
required
The space instance this field set belongs to.
fields
set[SchemaField]
required
The set of schema fields for this field set.
allowed_param_types
Sequence[type] | None
default:"None"
Optional sequence of allowed parameter types for validation.

Inheritance

Inheritance Chain:
  • SpaceFieldSet
  • Generic

Descendants

Properties

allowed_param_types
Sequence[type] | None
The allowed parameter types for this field set.
field_names_text
Sequence[str]
Text representation of field names in this set.
fields
set[SchemaField]
The set of schema fields contained in this field set.
fields_id
str
Unique identifier for this field set.
input_type
type[SIT]
The input type for this field set.
space
Space
The space instance this field set belongs to.
validated_allowed_param_types
Sequence[type]
The validated sequence of allowed parameter types.

Methods

get_field_for_schema()

get_field_for_schema(schema_) -> SchemaField | None
Retrieve the field associated with a specific schema instance.
schema_
Any
required
The schema instance to find the field for.
Returns: The schema field if found, None otherwise.