Source code for datacatalog.identifiers.typeduuid.schemas

from ...jsonschemas import JSONSchemaBaseObject, JSONSchemaCollection
from ...utils import dynamic_import
from ..schemas import IdentifierSchema
from .typeduuid import uuidtypes, TypedCatalogUUID
from .examples import TYPEDUUID as EXAMPLES

[docs]def get_schemas(): schemas = dict() for key, uuidt in uuidtypes.items(): setup_args = {'_filename': key.title(), 'title': uuidt.title, 'prefix': uuidt.prefix, 'kind': key} schemas[key + '_uuid'] = TypedCatalogUUID(**setup_args).to_jsonschema() return JSONSchemaCollection(schemas)