Example #1
0
 static VocabularyRegistry()
 {
     Global = new VocabularyRegistry();
     Global.Register(Vocabularies.Core201909);
     Global.Register(Vocabularies.Applicator201909);
     Global.Register(Vocabularies.Validation201909);
     Global.Register(Vocabularies.Metadata201909);
     Global.Register(Vocabularies.Format201909);
     Global.Register(Vocabularies.Content201909);
 }
Example #2
0
        internal void CopyFrom(VocabularyRegistry other)
        {
            if (other._vocabularies == null)
            {
                return;
            }

            if (_vocabularies == null)
            {
                _vocabularies = new ConcurrentDictionary <Uri, Vocabulary>(other._vocabularies);
                return;
            }

            foreach (var vocabulary in other._vocabularies)
            {
                _vocabularies[vocabulary.Key] = vocabulary.Value;
            }
        }
Example #3
0
        static VocabularyRegistry()
        {
            Global = new VocabularyRegistry();

            Global.Register(Vocabularies.Core201909);
            Global.Register(Vocabularies.Applicator201909);
            Global.Register(Vocabularies.Validation201909);
            Global.Register(Vocabularies.Metadata201909);
            Global.Register(Vocabularies.Format201909);
            Global.Register(Vocabularies.Content201909);

            Global.Register(Vocabularies.Core202012);
            Global.Register(Vocabularies.Applicator202012);
            Global.Register(Vocabularies.Validation202012);
            Global.Register(Vocabularies.Metadata202012);
            Global.Register(Vocabularies.Unevaluated202012);
            Global.Register(Vocabularies.FormatAnnotation202012);
            Global.Register(Vocabularies.FormatAssertion202012);
            Global.Register(Vocabularies.Content202012);
        }