/// <summary>
        /// Registers the all components required to use the data vocabulary.
        /// </summary>
        public static void Register(VocabularyRegistry?vocabRegistry = null, SchemaRegistry?schemaRegistry = null)
        {
            vocabRegistry ??= VocabularyRegistry.Global;
            schemaRegistry ??= SchemaRegistry.Global;

            vocabRegistry.Register(UniqueKeys);
            SchemaKeywordRegistry.Register <UniqueKeysKeyword>();
            schemaRegistry.Register(MetaSchemas.UniqueKeysId, MetaSchemas.UniqueKeys);
        }
示例#2
0
        /// <summary>
        /// Registers the all components required to use the data vocabulary.
        /// </summary>
        public static void Register(VocabularyRegistry?vocabRegistry = null, SchemaRegistry?schemaRegistry = null)
        {
            vocabRegistry ??= VocabularyRegistry.Global;
            schemaRegistry ??= SchemaRegistry.Global;

            vocabRegistry.Register(Data);
            SchemaKeywordRegistry.Register <DataKeyword>();
            schemaRegistry.Register(MetaSchemas.DataId, MetaSchemas.Data);
        }