| 1 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod additional_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/additional_items/; |
| 2 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod additional_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/additional_properties/; |
| 3 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod all_ofrust-analyzer cargo jsonschema 0.37.4 keywords/all_of/; |
| 4 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod any_ofrust-analyzer cargo jsonschema 0.37.4 keywords/any_of/; |
| 5 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod booleanrust-analyzer cargo jsonschema 0.37.4 keywords/boolean/; |
| 6 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod const_rust-analyzer cargo jsonschema 0.37.4 keywords/const_/; |
| 7 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod containsrust-analyzer cargo jsonschema 0.37.4 keywords/contains/; |
| 8 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod contentrust-analyzer cargo jsonschema 0.37.4 keywords/content/; |
| 9 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod customrust-analyzer cargo jsonschema 0.37.4 keywords/custom/; |
| 10 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod dependenciesrust-analyzer cargo jsonschema 0.37.4 keywords/dependencies/; |
| 11 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod enum_rust-analyzer cargo jsonschema 0.37.4 keywords/enum_/; |
| 12 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod formatrust-analyzer cargo jsonschema 0.37.4 keywords/format/; |
| 13 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod helpersrust-analyzer cargo jsonschema 0.37.4 keywords/helpers/; |
| 14 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod if_rust-analyzer cargo jsonschema 0.37.4 keywords/if_/; |
| 15 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod itemsrust-analyzer cargo jsonschema 0.37.4 keywords/items/; |
| 16 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod legacyrust-analyzer cargo jsonschema 0.37.4 keywords/legacy/; |
| 17 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod max_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/max_items/; |
| 18 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod max_lengthrust-analyzer cargo jsonschema 0.37.4 keywords/max_length/; |
| 19 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod max_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/max_properties/; |
| 20 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod min_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/min_items/; |
| 21 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod min_lengthrust-analyzer cargo jsonschema 0.37.4 keywords/min_length/; |
| 22 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod min_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/min_properties/; |
| 23 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod minmaxrust-analyzer cargo jsonschema 0.37.4 keywords/minmax/; |
| 24 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod multiple_ofrust-analyzer cargo jsonschema 0.37.4 keywords/multiple_of/; |
| 25 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod notrust-analyzer cargo jsonschema 0.37.4 keywords/not/; |
| 26 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod one_ofrust-analyzer cargo jsonschema 0.37.4 keywords/one_of/; |
| 27 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod patternrust-analyzer cargo jsonschema 0.37.4 keywords/pattern/; |
| 28 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod pattern_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/pattern_properties/; |
| 29 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod prefix_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/prefix_items/; |
| 30 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/properties/; |
| 31 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod property_namesrust-analyzer cargo jsonschema 0.37.4 keywords/property_names/; |
| 32 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod ref_rust-analyzer cargo jsonschema 0.37.4 keywords/ref_/; |
| 33 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod requiredrust-analyzer cargo jsonschema 0.37.4 keywords/required/; |
| 34 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod type_rust-analyzer cargo jsonschema 0.37.4 keywords/type_/; |
| 35 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod unevaluated_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/; |
| 36 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod unevaluated_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/; |
| 37 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) mod unique_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/unique_items/; |
| 38 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/; |
| 39 | |
| 40 | use referencingrust-analyzer cargo referencing 0.37.4 crate/::{Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#, Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#}; |
| 41 | use serde_jsonrust-analyzer cargo serde_json 1.0.145 crate/::{Maprust-analyzer cargo serde_json 1.0.145 map/Map#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#}; |
| 42 | |
| 43 | use craterust-analyzer cargo jsonschema 0.37.4 crate/::{compilerrust-analyzer cargo jsonschema 0.37.4 compiler/, errorrust-analyzer cargo jsonschema 0.37.4 error/, validatorrust-analyzer cargo jsonschema 0.37.4 validator/::Validaterust-analyzer cargo jsonschema 0.37.4 validator/Validate#}; |
| 44 | |
| 45 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) type CompilationResultrust-analyzer cargo jsonschema 0.37.4 keywords/CompilationResult#<'a> = Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<BoxedValidatorrust-analyzer cargo jsonschema 0.37.4 keywords/BoxedValidator#, errorrust-analyzer cargo jsonschema 0.37.4 error/::ValidationErrorrust-analyzer cargo jsonschema 0.37.4 error/ValidationError#<'a>>; |
| 46 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) type BoxedValidatorrust-analyzer cargo jsonschema 0.37.4 keywords/BoxedValidator# = Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<dyn Validaterust-analyzer cargo jsonschema 0.37.4 validator/Validate#>; |
| 47 | |
| 48 | type CompileFuncrust-analyzer cargo jsonschema 0.37.4 keywords/CompileFunc#<'a> = |
| 49 | fn(&'a compilerrust-analyzer cargo jsonschema 0.37.4 compiler/::Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#, &'a Maprust-analyzer cargo serde_json 1.0.145 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#>, &'a Valuerust-analyzer cargo serde_json 1.0.145 value/Value#) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<CompilationResultrust-analyzer cargo jsonschema 0.37.4 keywords/CompilationResult#<'a>>; |
| 50 | |
| 51 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 52 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) enum Keywordrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword# { |
| 53 | Builtinrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#Builtin#(BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#), |
| 54 | Customrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#Custom#(Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<str>), |
| 55 | } |
| 56 | |
| 57 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 58 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) enum BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword# { |
| 59 | Refrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Ref#, |
| 60 | AdditionalItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AdditionalItems#, |
| 61 | AdditionalPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AdditionalProperties#, |
| 62 | AllOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AllOf#, |
| 63 | AnyOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AnyOf#, |
| 64 | Dependenciesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Dependencies#, |
| 65 | Enumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Enum#, |
| 66 | Formatrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Format#, |
| 67 | Itemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Items#, |
| 68 | MaxItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MaxItems#, |
| 69 | MaxLengthrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MaxLength#, |
| 70 | MaxPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MaxProperties#, |
| 71 | MinItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MinItems#, |
| 72 | MinLengthrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MinLength#, |
| 73 | MinPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MinProperties#, |
| 74 | MultipleOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MultipleOf#, |
| 75 | Notrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Not#, |
| 76 | OneOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#OneOf#, |
| 77 | Patternrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Pattern#, |
| 78 | PatternPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#PatternProperties#, |
| 79 | Propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Properties#, |
| 80 | Requiredrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Required#, |
| 81 | UniqueItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UniqueItems#, |
| 82 | Maximumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Maximum#, |
| 83 | Minimumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Minimum#, |
| 84 | Typerust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Type#, |
| 85 | Construst-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Const#, |
| 86 | Containsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Contains#, |
| 87 | ExclusiveMaximumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ExclusiveMaximum#, |
| 88 | ExclusiveMinimumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ExclusiveMinimum#, |
| 89 | PropertyNamesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#PropertyNames#, |
| 90 | ContentMediaTyperust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ContentMediaType#, |
| 91 | ContentEncodingrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ContentEncoding#, |
| 92 | Ifrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#If#, |
| 93 | RecursiveRefrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#RecursiveRef#, |
| 94 | DependentRequiredrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#DependentRequired#, |
| 95 | DependentSchemasrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#DependentSchemas#, |
| 96 | PrefixItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#PrefixItems#, |
| 97 | UnevaluatedItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UnevaluatedItems#, |
| 98 | UnevaluatedPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UnevaluatedProperties#, |
| 99 | DynamicRefrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#DynamicRef#, |
| 100 | } |
| 101 | |
| 102 | impl BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword# { |
| 103 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn as_strrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]as_str().(&self) -> &'static str { |
| 104 | match self { |
| 105 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Refrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Ref# => "$ref", |
| 106 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::AdditionalItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AdditionalItems# => "additionalItems", |
| 107 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::AdditionalPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AdditionalProperties# => "additionalProperties", |
| 108 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::AllOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AllOf# => "allOf", |
| 109 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::AnyOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AnyOf# => "anyOf", |
| 110 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Dependenciesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Dependencies# => "dependencies", |
| 111 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Enumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Enum# => "enum", |
| 112 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Formatrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Format# => "format", |
| 113 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Itemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Items# => "items", |
| 114 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::MaxItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MaxItems# => "maxItems", |
| 115 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::MaxLengthrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MaxLength# => "maxLength", |
| 116 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::MaxPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MaxProperties# => "maxProperties", |
| 117 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::MinItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MinItems# => "minItems", |
| 118 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::MinLengthrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MinLength# => "minLength", |
| 119 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::MinPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MinProperties# => "minProperties", |
| 120 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::MultipleOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MultipleOf# => "multipleOf", |
| 121 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Notrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Not# => "not", |
| 122 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::OneOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#OneOf# => "oneOf", |
| 123 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Patternrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Pattern# => "pattern", |
| 124 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::PatternPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#PatternProperties# => "patternProperties", |
| 125 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Properties# => "properties", |
| 126 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Requiredrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Required# => "required", |
| 127 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::UniqueItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UniqueItems# => "uniqueItems", |
| 128 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Maximumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Maximum# => "maximum", |
| 129 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Minimumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Minimum# => "minimum", |
| 130 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Typerust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Type# => "type", |
| 131 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Construst-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Const# => "const", |
| 132 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Containsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Contains# => "contains", |
| 133 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::ExclusiveMaximumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ExclusiveMaximum# => "exclusiveMaximum", |
| 134 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::ExclusiveMinimumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ExclusiveMinimum# => "exclusiveMinimum", |
| 135 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::PropertyNamesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#PropertyNames# => "propertyNames", |
| 136 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::ContentMediaTyperust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ContentMediaType# => "contentMediaType", |
| 137 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::ContentEncodingrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ContentEncoding# => "contentEncoding", |
| 138 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::Ifrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#If# => "if", |
| 139 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::RecursiveRefrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#RecursiveRef# => "$recursiveRef", |
| 140 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::DependentRequiredrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#DependentRequired# => "dependentRequired", |
| 141 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::DependentSchemasrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#DependentSchemas# => "dependentSchemas", |
| 142 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::PrefixItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#PrefixItems# => "prefixItems", |
| 143 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::UnevaluatedItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UnevaluatedItems# => "unevaluatedItems", |
| 144 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::UnevaluatedPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UnevaluatedProperties# => "unevaluatedProperties", |
| 145 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]::DynamicRefrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#DynamicRef# => "$dynamicRef", |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | impl Keywordrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword# { |
| 151 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn customrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword]custom().(name: impl Intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>) -> Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword] { |
| 152 | Keywordrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#::Customrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#Custom#(name.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/Into#into().().into_boxed_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]into_boxed_str().()) |
| 153 | } |
| 154 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn as_strrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword]as_str().(&self) -> &str { |
| 155 | match self { |
| 156 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword]::Builtinrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#Builtin#(d) => d.as_strrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[BuiltinKeyword]as_str().(), |
| 157 | Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword]::Customrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#Custom#(s) => s, |
| 158 | } |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#> for Keywordrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword# { |
| 163 | fn fromrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword][`From<BuiltinKeyword>`]from().(value: BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#) -> Selfrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword][`From<BuiltinKeyword>`] { |
| 164 | Keywordrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#::Builtinrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#Builtin#(value) |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | impl fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for Keywordrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword# { |
| 169 | fn fmtrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# { |
| 170 | f.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().(self.as_strrust-analyzer cargo jsonschema 0.37.4 keywords/impl#[Keyword]as_str().()) |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | pub(craterust-analyzer cargo jsonschema 0.37.4 crate/) fn get_for_draftrust-analyzer cargo jsonschema 0.37.4 keywords/get_for_draft().<'a>( |
| 175 | ctx: &compilerrust-analyzer cargo jsonschema 0.37.4 compiler/::Contextrust-analyzer cargo jsonschema 0.37.4 compiler/Context#<'a>, |
| 176 | keyword: &'a str, |
| 177 | ) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<(Keywordrust-analyzer cargo jsonschema 0.37.4 keywords/Keyword#, CompileFuncrust-analyzer cargo jsonschema 0.37.4 keywords/CompileFunc#<'a>)> { |
| 178 | match (ctx.draftrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]draft().(), keyword) { |
| 179 | // Keywords common to all drafts |
| 180 | (_, "$ref") => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Refrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Ref#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), ref_rust-analyzer cargo jsonschema 0.37.4 keywords/ref_/::compile_refrust-analyzer cargo jsonschema 0.37.4 keywords/ref_/compile_ref().)), |
| 181 | (_, "additionalItems") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 182 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::AdditionalItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AdditionalItems#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 183 | additional_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/additional_items/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/additional_items/compile()., |
| 184 | )), |
| 185 | (_, "additionalProperties") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 186 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::AdditionalPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AdditionalProperties#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 187 | additional_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/additional_properties/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/additional_properties/compile()., |
| 188 | )), |
| 189 | (_, "allOf") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => { |
| 190 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::AllOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AllOf#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), all_ofrust-analyzer cargo jsonschema 0.37.4 keywords/all_of/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/all_of/compile().)) |
| 191 | } |
| 192 | (_, "anyOf") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => { |
| 193 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::AnyOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#AnyOf#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), any_ofrust-analyzer cargo jsonschema 0.37.4 keywords/any_of/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/any_of/compile().)) |
| 194 | } |
| 195 | (_, "dependencies") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => { |
| 196 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Dependenciesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Dependencies#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), dependenciesrust-analyzer cargo jsonschema 0.37.4 keywords/dependencies/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/dependencies/compile().)) |
| 197 | } |
| 198 | (_, "enum") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 199 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Enumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Enum#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), enum_rust-analyzer cargo jsonschema 0.37.4 keywords/enum_/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/enum_/compile().)) |
| 200 | } |
| 201 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909#, "format") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Formatrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Format#) => { |
| 202 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Formatrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Format#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), formatrust-analyzer cargo jsonschema 0.37.4 keywords/format/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/format/compile().)) |
| 203 | } |
| 204 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, "format") |
| 205 | if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::FormatAnnotationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#FormatAnnotation#) => |
| 206 | { |
| 207 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Formatrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Format#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), formatrust-analyzer cargo jsonschema 0.37.4 keywords/format/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/format/compile().)) |
| 208 | } |
| 209 | (_, "format") => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Formatrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Format#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), formatrust-analyzer cargo jsonschema 0.37.4 keywords/format/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/format/compile().)), |
| 210 | (_, "items") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => { |
| 211 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Itemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Items#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), itemsrust-analyzer cargo jsonschema 0.37.4 keywords/items/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/items/compile().)) |
| 212 | } |
| 213 | (_, "maxItems") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 214 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::MaxItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MaxItems#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), max_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/max_items/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/max_items/compile().)) |
| 215 | } |
| 216 | (_, "maxLength") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 217 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::MaxLengthrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MaxLength#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), max_lengthrust-analyzer cargo jsonschema 0.37.4 keywords/max_length/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/max_length/compile().)) |
| 218 | } |
| 219 | (_, "maxProperties") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 220 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::MaxPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MaxProperties#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 221 | max_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/max_properties/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/max_properties/compile()., |
| 222 | )), |
| 223 | (_, "minItems") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 224 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::MinItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MinItems#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), min_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/min_items/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/min_items/compile().)) |
| 225 | } |
| 226 | (_, "minLength") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 227 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::MinLengthrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MinLength#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), min_lengthrust-analyzer cargo jsonschema 0.37.4 keywords/min_length/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/min_length/compile().)) |
| 228 | } |
| 229 | (_, "minProperties") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 230 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::MinPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MinProperties#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 231 | min_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/min_properties/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/min_properties/compile()., |
| 232 | )), |
| 233 | (_, "multipleOf") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 234 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::MultipleOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#MultipleOf#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), multiple_ofrust-analyzer cargo jsonschema 0.37.4 keywords/multiple_of/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/multiple_of/compile().)) |
| 235 | } |
| 236 | (_, "not") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => { |
| 237 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Notrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Not#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), notrust-analyzer cargo jsonschema 0.37.4 keywords/not/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/not/compile().)) |
| 238 | } |
| 239 | (_, "oneOf") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => { |
| 240 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::OneOfrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#OneOf#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), one_ofrust-analyzer cargo jsonschema 0.37.4 keywords/one_of/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/one_of/compile().)) |
| 241 | } |
| 242 | (_, "pattern") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 243 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Patternrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Pattern#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), patternrust-analyzer cargo jsonschema 0.37.4 keywords/pattern/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/pattern/compile().)) |
| 244 | } |
| 245 | (_, "patternProperties") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 246 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::PatternPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#PatternProperties#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 247 | pattern_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/pattern_properties/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/pattern_properties/compile()., |
| 248 | )), |
| 249 | (_, "properties") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => { |
| 250 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Properties#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/properties/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/properties/compile().)) |
| 251 | } |
| 252 | (_, "required") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 253 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Requiredrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Required#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), requiredrust-analyzer cargo jsonschema 0.37.4 keywords/required/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/required/compile().)) |
| 254 | } |
| 255 | (_, "uniqueItems") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 256 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::UniqueItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UniqueItems#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), unique_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/unique_items/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/unique_items/compile().)) |
| 257 | } |
| 258 | // Draft 4 specific |
| 259 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft4rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft4#, "maximum") => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 260 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Maximumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Maximum#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 261 | legacyrust-analyzer cargo jsonschema 0.37.4 keywords/legacy/::maximum_draft_4rust-analyzer cargo jsonschema 0.37.4 keywords/legacy/maximum_draft_4/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/legacy/maximum_draft_4/compile()., |
| 262 | )), |
| 263 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft4rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft4#, "minimum") => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 264 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Minimumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Minimum#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 265 | legacyrust-analyzer cargo jsonschema 0.37.4 keywords/legacy/::minimum_draft_4rust-analyzer cargo jsonschema 0.37.4 keywords/legacy/minimum_draft_4/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/legacy/minimum_draft_4/compile()., |
| 266 | )), |
| 267 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft4rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft4#, "type") => { |
| 268 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Typerust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Type#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), legacyrust-analyzer cargo jsonschema 0.37.4 keywords/legacy/::type_draft_4rust-analyzer cargo jsonschema 0.37.4 keywords/legacy/type_draft_4/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/legacy/type_draft_4/compile().)) |
| 269 | } |
| 270 | // Draft 6 and later |
| 271 | ( |
| 272 | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# |
| 273 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# |
| 274 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# |
| 275 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# |
| 276 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, |
| 277 | "const", |
| 278 | ) if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 279 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Construst-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Const#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), const_rust-analyzer cargo jsonschema 0.37.4 keywords/const_/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/const_/compile().)) |
| 280 | } |
| 281 | ( |
| 282 | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# |
| 283 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# |
| 284 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# |
| 285 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# |
| 286 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, |
| 287 | "contains", |
| 288 | ) if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => { |
| 289 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Containsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Contains#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), containsrust-analyzer cargo jsonschema 0.37.4 keywords/contains/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/contains/compile().)) |
| 290 | } |
| 291 | ( |
| 292 | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# |
| 293 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# |
| 294 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# |
| 295 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# |
| 296 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, |
| 297 | "exclusiveMaximum", |
| 298 | ) if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 299 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::ExclusiveMaximumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ExclusiveMaximum#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 300 | minmaxrust-analyzer cargo jsonschema 0.37.4 keywords/minmax/::compile_exclusive_maximumrust-analyzer cargo jsonschema 0.37.4 keywords/minmax/compile_exclusive_maximum()., |
| 301 | )), |
| 302 | ( |
| 303 | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# |
| 304 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# |
| 305 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# |
| 306 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# |
| 307 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, |
| 308 | "exclusiveMinimum", |
| 309 | ) if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 310 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::ExclusiveMinimumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ExclusiveMinimum#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 311 | minmaxrust-analyzer cargo jsonschema 0.37.4 keywords/minmax/::compile_exclusive_minimumrust-analyzer cargo jsonschema 0.37.4 keywords/minmax/compile_exclusive_minimum()., |
| 312 | )), |
| 313 | ( |
| 314 | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# |
| 315 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# |
| 316 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# |
| 317 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# |
| 318 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, |
| 319 | "maximum", |
| 320 | ) if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 321 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Maximumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Maximum#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), minmaxrust-analyzer cargo jsonschema 0.37.4 keywords/minmax/::compile_maximumrust-analyzer cargo jsonschema 0.37.4 keywords/minmax/compile_maximum().)) |
| 322 | } |
| 323 | ( |
| 324 | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# |
| 325 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# |
| 326 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# |
| 327 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# |
| 328 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, |
| 329 | "minimum", |
| 330 | ) if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 331 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Minimumrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Minimum#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), minmaxrust-analyzer cargo jsonschema 0.37.4 keywords/minmax/::compile_minimumrust-analyzer cargo jsonschema 0.37.4 keywords/minmax/compile_minimum().)) |
| 332 | } |
| 333 | ( |
| 334 | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# |
| 335 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# |
| 336 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# |
| 337 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# |
| 338 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, |
| 339 | "propertyNames", |
| 340 | ) if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 341 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::PropertyNamesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#PropertyNames#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 342 | property_namesrust-analyzer cargo jsonschema 0.37.4 keywords/property_names/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/property_names/compile()., |
| 343 | )), |
| 344 | ( |
| 345 | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# |
| 346 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# |
| 347 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# |
| 348 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# |
| 349 | | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, |
| 350 | "type", |
| 351 | ) if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => { |
| 352 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Typerust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#Type#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), type_rust-analyzer cargo jsonschema 0.37.4 keywords/type_/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/type_/compile().)) |
| 353 | } |
| 354 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7#, "contentMediaType") => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 355 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::ContentMediaTyperust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ContentMediaType#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 356 | contentrust-analyzer cargo jsonschema 0.37.4 keywords/content/::compile_media_typerust-analyzer cargo jsonschema 0.37.4 keywords/content/compile_media_type()., |
| 357 | )), |
| 358 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft6rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft6# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7#, "contentEncoding") => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 359 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::ContentEncodingrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#ContentEncoding#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 360 | contentrust-analyzer cargo jsonschema 0.37.4 keywords/content/::compile_content_encodingrust-analyzer cargo jsonschema 0.37.4 keywords/content/compile_content_encoding()., |
| 361 | )), |
| 362 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft7rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft7# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, "if") |
| 363 | if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => |
| 364 | { |
| 365 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::Ifrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#If#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), if_rust-analyzer cargo jsonschema 0.37.4 keywords/if_/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/if_/compile().)) |
| 366 | } |
| 367 | // Draft 2019-09 specific |
| 368 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909#, "$recursiveRef") => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 369 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::RecursiveRefrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#RecursiveRef#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 370 | ref_rust-analyzer cargo jsonschema 0.37.4 keywords/ref_/::compile_recursive_refrust-analyzer cargo jsonschema 0.37.4 keywords/ref_/compile_recursive_ref()., |
| 371 | )), |
| 372 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, "dependentRequired") |
| 373 | if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Validationrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Validation#) => |
| 374 | { |
| 375 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 376 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::DependentRequiredrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#DependentRequired#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 377 | dependenciesrust-analyzer cargo jsonschema 0.37.4 keywords/dependencies/::compile_dependent_requiredrust-analyzer cargo jsonschema 0.37.4 keywords/dependencies/compile_dependent_required()., |
| 378 | )) |
| 379 | } |
| 380 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, "dependentSchemas") |
| 381 | if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => |
| 382 | { |
| 383 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 384 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::DependentSchemasrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#DependentSchemas#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 385 | dependenciesrust-analyzer cargo jsonschema 0.37.4 keywords/dependencies/::compile_dependent_schemasrust-analyzer cargo jsonschema 0.37.4 keywords/dependencies/compile_dependent_schemas()., |
| 386 | )) |
| 387 | } |
| 388 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909#, "unevaluatedItems") if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => { |
| 389 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 390 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::UnevaluatedItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UnevaluatedItems#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 391 | unevaluated_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/compile()., |
| 392 | )) |
| 393 | } |
| 394 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, "unevaluatedItems") |
| 395 | if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Unevaluatedrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Unevaluated#) => |
| 396 | { |
| 397 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 398 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::UnevaluatedItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UnevaluatedItems#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 399 | unevaluated_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_items/compile()., |
| 400 | )) |
| 401 | } |
| 402 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft201909rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft201909#, "unevaluatedProperties") |
| 403 | if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => |
| 404 | { |
| 405 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 406 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::UnevaluatedPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UnevaluatedProperties#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 407 | unevaluated_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/compile()., |
| 408 | )) |
| 409 | } |
| 410 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, "unevaluatedProperties") |
| 411 | if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Unevaluatedrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Unevaluated#) => |
| 412 | { |
| 413 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(( |
| 414 | BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::UnevaluatedPropertiesrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#UnevaluatedProperties#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 415 | unevaluated_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/unevaluated_properties/compile()., |
| 416 | )) |
| 417 | } |
| 418 | // Draft 2020-12 specific |
| 419 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, "prefixItems") |
| 420 | if ctx.has_vocabularyrust-analyzer cargo jsonschema 0.37.4 compiler/impl#[`Context<'a>`]has_vocabulary().(&Vocabularyrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#::Applicatorrust-analyzer cargo referencing 0.37.4 vocabularies/Vocabulary#Applicator#) => |
| 421 | { |
| 422 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::PrefixItemsrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#PrefixItems#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), prefix_itemsrust-analyzer cargo jsonschema 0.37.4 keywords/prefix_items/::compilerust-analyzer cargo jsonschema 0.37.4 keywords/prefix_items/compile().)) |
| 423 | } |
| 424 | (Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Draft202012rust-analyzer cargo referencing 0.37.4 specification/Draft#Draft202012# | Draftrust-analyzer cargo referencing 0.37.4 specification/Draft#::Unknownrust-analyzer cargo referencing 0.37.4 specification/Draft#Unknown#, "$dynamicRef") => { |
| 425 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((BuiltinKeywordrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#::DynamicRefrust-analyzer cargo jsonschema 0.37.4 keywords/BuiltinKeyword#DynamicRef#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), ref_rust-analyzer cargo jsonschema 0.37.4 keywords/ref_/::compile_dynamic_refrust-analyzer cargo jsonschema 0.37.4 keywords/ref_/compile_dynamic_ref().)) |
| 426 | } |
| 427 | // Unknown or not-yet-implemented keyword |
| 428 | _ => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | #[cfg(test)] |
| 433 | mod testsrust-analyzer cargo jsonschema 0.37.4 keywords/tests/ { |
| 434 | use serde_jsonrust-analyzer cargo serde_json 1.0.145 crate/::{jsonrust-analyzer cargo serde_json 1.0.145 macros/json!, Valuerust-analyzer cargo serde_json 1.0.145 value/Value#}; |
| 435 | use test_caserust-analyzer cargo test-case 3.3.1 crate/::test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:; |
| 436 | |
| 437 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"prefixItems": [{}], "items": {"type": "integer"}}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([ null, 2, 3, "foo" ]), r#""foo" is not of type "integer""#)] |
| 438 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"prefixItems": [{}, {}, {}], "items": false}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([ 1, 2, 3, 4 ]), r"False schema does not allow 4")] |
| 439 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"prefixItems": [{}, {}, {}], "items": false}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([ 1, 2, 3, 4, 5 ]), r"False schema does not allow 4")] |
| 440 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"properties": {"foo": {}, "bar": {}}, "patternProperties": { "^v": {} }, "additionalProperties": false}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"foo" : 1, "bar" : 2, "quux" : "boom"}), r"Additional properties are not allowed ('quux' was unexpected)")] |
| 441 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"anyOf": [{"type": "integer"}, {"minimum": 2}]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(1.5), r"1.5 is not valid under any of the schemas listed in the 'anyOf' keyword")] |
| 442 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"const": 2}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(5), r"2 was expected")] |
| 443 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"contains": {"minimum": 5}}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([2, 3, 4]), r"None of [2,3,4] are valid under the given schema")] |
| 444 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [1]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(4), r"4 is not one of 1")] |
| 445 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [1, 2]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(4), r"4 is not one of 1 or 2")] |
| 446 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [1, 2, 3]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(4), r"4 is not one of 1, 2 or 3")] |
| 447 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [1, 2, 3, 4]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(5), r"5 is not one of 1, 2 or 2 other candidates")] |
| 448 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [1, 2, 3, 4, 5]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(6), r"6 is not one of 1, 2 or 3 other candidates")] |
| 449 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"exclusiveMaximum": 3}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(3.0), r"3.0 is greater than or equal to the maximum of 3")] |
| 450 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"exclusiveMaximum": 3.0}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(3.0), r"3.0 is greater than or equal to the maximum of 3.0")] |
| 451 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"exclusiveMinimum": 1}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(1.0), r"1.0 is less than or equal to the minimum of 1")] |
| 452 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"exclusiveMinimum": 1.0}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(1), r"1 is less than or equal to the minimum of 1.0")] |
| 453 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"format": "ipv4"}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!("2001:0db8:85a3:0000:0000:8a2e:0370:7334"), r#""2001:0db8:85a3:0000:0000:8a2e:0370:7334" is not a "ipv4""#)] |
| 454 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"maximum": 3}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(3.5), r"3.5 is greater than the maximum of 3")] |
| 455 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"maximum": 3.0}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(3.5), r"3.5 is greater than the maximum of 3.0")] |
| 456 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"minimum": 3}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(2.5), r"2.5 is less than the minimum of 3")] |
| 457 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"minimum": 3.0}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(2.5), r"2.5 is less than the minimum of 3.0")] |
| 458 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"maxItems": 2}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([1, 2, 3]), r"[1,2,3] has more than 2 items")] |
| 459 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"maxLength": 2}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!("foo"), r#""foo" is longer than 2 characters"#)] |
| 460 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"maxProperties": 2}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"foo": 1, "bar": 2, "baz": 3}), r#"{"bar":2,"baz":3,"foo":1} has more than 2 properties"#)] |
| 461 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"minimum": 1.1}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(0.6), r"0.6 is less than the minimum of 1.1")] |
| 462 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"minItems": 1}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([]), r"[] has less than 1 item")] |
| 463 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"minLength": 2}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!("f"), r#""f" is shorter than 2 characters"#)] |
| 464 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"minProperties": 1}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({}), r"{} has less than 1 property")] |
| 465 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"multipleOf": 2}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(7), r"7 is not a multiple of 2")] |
| 466 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"not": {"type": "integer"}}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(1), r#"{"type":"integer"} is not allowed for 1"#)] |
| 467 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"oneOf": [{"type": "integer"}, {"minimum": 2}]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(1.1), r"1.1 is not valid under any of the schemas listed in the 'oneOf' keyword")] |
| 468 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"oneOf": [{"type": "integer"}, {"minimum": 2}]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(3), r"3 is valid under more than one of the schemas listed in the 'oneOf' keyword")] |
| 469 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"pattern": "^a*$"}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!("abc"), r#""abc" does not match "^a*$""#)] |
| 470 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"properties": {"foo": {}, "bar": {}}, "required": ["foo"]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"bar": 1}), r#""foo" is a required property"#)] |
| 471 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"type": "integer"}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(1.1), r#"1.1 is not of type "integer""#)] |
| 472 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"type": ["integer", "string"]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(null), r#"null is not of types "integer", "string""#)] |
| 473 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"uniqueItems": true}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([1, 1]), r"[1,1] has non-unique elements")] |
| 474 | fn error_messagerust-analyzer cargo jsonschema 0.37.4 keywords/tests/error_message().(schema: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#, instance: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#, expected: &str) { |
| 475 | let validator = craterust-analyzer cargo jsonschema 0.37.4 crate/::optionsrust-analyzer cargo jsonschema 0.37.4 options().() |
| 476 | .should_validate_formatsrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]should_validate_formats().(true) |
| 477 | .buildrust-analyzer cargo jsonschema 0.37.4 options/impl#[ValidationOptions]build().(schema) |
| 478 | .expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Invalid schema"); |
| 479 | let errors: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_> = validator.iter_errorsrust-analyzer cargo jsonschema 0.37.4 validator/impl#[Validator]iter_errors().(instance).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().(); |
| 480 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(errors[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), expected); |
| 481 | } |
| 482 | |
| 483 | // Extra cases not covered by JSON test suite |
| 484 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalProperties": {"type": "string"}}))] |
| 485 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalProperties": {"type": "string"}, "properties": {"foo": {}}}))] |
| 486 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalProperties": {"type": "string"}, "patternProperties": {"f.*o": {"type": "integer"}}}))] |
| 487 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalProperties": {"type": "string"}, "properties": {"foo": {}}, "patternProperties": {"f.*o": {"type": "integer"}}}))] |
| 488 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalProperties": false}))] |
| 489 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalProperties": false, "properties": {"foo": {}}}))] |
| 490 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalProperties": false, "patternProperties": {"f.*o": {"type": "integer"}}}))] |
| 491 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalProperties": false, "properties": {"foo": {}}, "patternProperties": {"f.*o": {"type": "integer"}}}))] |
| 492 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalItems": false, "prefixItems": [{"type": "string"}]}))] |
| 493 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalItems": {"type": "integer"}, "prefixItems": [{"type": "string"}]}))] |
| 494 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"contains": {"minimum": 5}}))] |
| 495 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"contentMediaType": "application/json"}))] |
| 496 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"contentEncoding": "base64"}))] |
| 497 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"contentEncoding": "base64", "contentMediaType": "application/json"}))] |
| 498 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"dependencies": {"bar": ["foo"]}}))] |
| 499 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"exclusiveMaximum": 5}))] |
| 500 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"exclusiveMinimum": 5}))] |
| 501 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"format": "ipv4"}))] |
| 502 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"maximum": 2}))] |
| 503 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"maxItems": 2}))] |
| 504 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"maxProperties": 2}))] |
| 505 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"minProperties": 2}))] |
| 506 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"multipleOf": 2.5}))] |
| 507 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"multipleOf": 2}))] |
| 508 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"required": ["a"]}))] |
| 509 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"pattern": "^a"}))] |
| 510 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"patternProperties": {"f.*o": {"type": "integer"}}}))] |
| 511 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"propertyNames": {"maxLength": 3}}))] |
| 512 | fn is_valid_another_typerust-analyzer cargo jsonschema 0.37.4 keywords/tests/is_valid_another_type().(schema: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#) { |
| 513 | let instance = jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(null); |
| 514 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(craterust-analyzer cargo jsonschema 0.37.4 crate/::optionsrust-analyzer cargo jsonschema 0.37.4 options().() |
| 515 | .should_validate_formatsrust-analyzer cargo jsonschema 0.37.4 options/impl#[`ValidationOptions<R>`]should_validate_formats().(true) |
| 516 | .buildrust-analyzer cargo jsonschema 0.37.4 options/impl#[ValidationOptions]build().(schema) |
| 517 | .expectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]expect().("Invalid schema") |
| 518 | .is_validrust-analyzer cargo jsonschema 0.37.4 validator/impl#[Validator]is_valid().(&instance)); |
| 519 | } |
| 520 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalProperties": false}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({}))] |
| 521 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"additionalItems": false, "items": true}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([]))] |
| 522 | fn is_validrust-analyzer cargo jsonschema 0.37.4 keywords/tests/is_valid().(schema: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#, instance: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#) { |
| 523 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(craterust-analyzer cargo jsonschema 0.37.4 crate/::is_validrust-analyzer cargo jsonschema 0.37.4 is_valid().(schema, instance)); |
| 524 | } |
| 525 | |
| 526 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"type": "number"}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(42))] |
| 527 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"type": ["number", "null"]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(42))] |
| 528 | fn integer_is_valid_number_multi_typerust-analyzer cargo jsonschema 0.37.4 keywords/tests/integer_is_valid_number_multi_type().(schema: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#, instance: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#) { |
| 529 | // See: GH-147 |
| 530 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(craterust-analyzer cargo jsonschema 0.37.4 crate/::is_validrust-analyzer cargo jsonschema 0.37.4 is_valid().(schema, instance)); |
| 531 | } |
| 532 | // enum: Number |
| 533 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [0.0]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(0))] |
| 534 | // enum: Array |
| 535 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [[1.0]]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([1]))] |
| 536 | // enum: Object |
| 537 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [{"a": 1.0}]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"a": 1}))] |
| 538 | // enum:: Object in Array |
| 539 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [[{"b": 1.0}]]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([{"b": 1}]))] |
| 540 | // enum:: Array in Object |
| 541 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"enum": [{"c": [1.0]}]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"c": [1]}))] |
| 542 | // const: Number |
| 543 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"const": 0.0}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!(0))] |
| 544 | // const: Array |
| 545 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"const": [1.0]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([1]))] |
| 546 | // const: Object |
| 547 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"const": {"a": 1.0}}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"a": 1}))] |
| 548 | // const:: Object in Array |
| 549 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"const": [{"b": 1.0}]}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!([{"b": 1}]))] |
| 550 | // const:: Array in Object |
| 551 | #[test_caserust-analyzer cargo test-case-macros 3.3.1 test_case:(&jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"const": {"c": [1.0]}}), &jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"c": [1]}))] |
| 552 | fn numeric_equivalencerust-analyzer cargo jsonschema 0.37.4 keywords/tests/numeric_equivalence().(schema: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#, instance: &Valuerust-analyzer cargo serde_json 1.0.145 value/Value#) { |
| 553 | // See: GH-149 |
| 554 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(craterust-analyzer cargo jsonschema 0.37.4 crate/::is_validrust-analyzer cargo jsonschema 0.37.4 is_valid().(schema, instance)); |
| 555 | } |
| 556 | |
| 557 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 558 | fn required_all_propertiesrust-analyzer cargo jsonschema 0.37.4 keywords/tests/required_all_properties().() { |
| 559 | // See: GH-190 |
| 560 | let schema = jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({"required": ["foo", "bar"]}); |
| 561 | let instance = jsonrust-analyzer cargo serde_json 1.0.145 macros/json!!({}); |
| 562 | let validator = craterust-analyzer cargo jsonschema 0.37.4 crate/::validator_forrust-analyzer cargo jsonschema 0.37.4 validator_for().(&schema).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 563 | let errors: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_> = validator.iter_errorsrust-analyzer cargo jsonschema 0.37.4 validator/impl#[Validator]iter_errors().(&instance).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().(); |
| 564 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(errors.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().(), 2); |
| 565 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(errors[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), r#""foo" is a required property"#); |
| 566 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(errors[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), r#""bar" is a required property"#); |
| 567 | } |
| 568 | } |