cursus.core.config_fields.constants

Shared constants and enums for config field management.

This module contains constants and enums used throughout the config_field_manager package, implementing the Type-Safe Specifications principle.

class CategoryType(*values)[source]

Bases: Enum

Enumeration of field category types for the simplified structure.

Implementing the Type-Safe Specifications principle by using an enum instead of string literals.

SHARED = 1
SPECIFIC = 2
class MergeDirection(*values)[source]

Bases: Enum

Enumeration of merge directions.

Specifies the direction to resolve conflicts when merging fields.

PREFER_SOURCE = 1
PREFER_TARGET = 2
ERROR_ON_CONFLICT = 3
class SerializationMode(*values)[source]

Bases: Enum

Enumeration of serialization modes.

Controls the behavior of the serializer with respect to type metadata.

PRESERVE_TYPES = 1
SIMPLE_JSON = 2
CUSTOM_FIELDS = 3