Newtonsoft.Json.JsonValidatingReader.SchemaScope.SchemaScope C# (CSharp) Method

SchemaScope() public method

public SchemaScope ( JTokenType tokenType, IList schemas ) : System
tokenType JTokenType
schemas IList
return System
            public SchemaScope(JTokenType tokenType, IList<JsonSchemaModel> schemas)
            {
                _tokenType = tokenType;
                _schemas = schemas;

                _requiredProperties = schemas.SelectMany<JsonSchemaModel, string>(GetRequiredProperties).Distinct().ToDictionary(p => p, p => false);

                if (tokenType == JTokenType.Array && schemas.Any(s => s.UniqueItems))
                {
                    IsUniqueArray = true;
                    UniqueArrayItems = new List<JToken>();
                }
            }
JsonValidatingReader.SchemaScope