# Path: src/formpack/utils/replace_aliases.py
# LABEL_OPTIONAL_TYPES = [
#     'calculate',
#     'begin_group',
#     'begin_repeat',
# ] + META_TYPES
# 
# MAIN_TYPES = BASIC_TYPES + GEO_TYPES + MEDIA_TYPES
# 
# SELECT_TYPES = list(selects.keys())


from jsonschema import validate
from .utils.replace_aliases import (
    LABEL_OPTIONAL_TYPES,
    MAIN_TYPES,
    SELECT_TYPES,
)
        },
        'name': {
            'type': 'string',
        },
        'label': {
            'type': ['array', 'string'],
        },
        'select_from_list_name': {
            'type': 'string',
        },
    },
    'required': ['type', 'name', 'select_from_list_name'],
}

LABEL_OPTIONAL_SCHEMA = {
    'properties': {
        'type': {
            'type': 'string',
            'enum': LABEL_OPTIONAL_TYPES,
        },
        'name': {
            'type': 'string',
        },
    },
    'required': ['type', 'name'],
}


_ROW_SCHEMA = {
    'type': 'object',

# Path: src/formpack/utils/replace_aliases.py
# LABEL_OPTIONAL_TYPES = [
#     'calculate',
#     'begin_group',
#     'begin_repeat',
# ] + META_TYPES
# 
# MAIN_TYPES = BASIC_TYPES + GEO_TYPES + MEDIA_TYPES
# 
# SELECT_TYPES = list(selects.keys())


# Path: src/formpack/validators.py
from jsonschema import validate
from .utils.replace_aliases import (
    LABEL_OPTIONAL_TYPES,
    MAIN_TYPES,
    SELECT_TYPES,
)

        },
        'name': {
            'type': 'string',
        },
        'label': {
            'type': ['array', 'string'],
        },
        'select_from_list_name': {
            'type': 'string',
        },
    },
    'required': ['type', 'name', 'select_from_list_name'],
}

LABEL_OPTIONAL_SCHEMA = {
    'properties': {
        'type': {
            'type': 'string',
            'enum': LABEL_OPTIONAL_TYPES,
        },
        'name': {
            'type': 'string',
        },
    },
    'required': ['type', 'name'],
}


_ROW_SCHEMA = {
    'type': 'object',

    'oneOf': [