blue_cwl.core.common

Common.

Classes

CustomBaseModel()

Custom Model Config.

class blue_cwl.core.common.CustomBaseModel

Custom Model Config.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

classmethod from_dict(data: dict, **kwargs)

Instantiate a model from a dict.

classmethod from_string(serialized_data: str, **kwargs)

Deserialize object from JSON.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_dict(**kwargs) dict

Convert the object into a dict.

to_json(**kwargs) str

Serialize the object to JSON.

to_string(**kwargs) str

Serialize the object to JSON.