Class VocabularyKeyword
Defines the $vocabulary
JSON Schema keyword.
Inheritance
System.Object
VocabularyKeyword
Implements
System.Collections.Generic.ICollection<
System.Collections.Generic.KeyValuePair<
SchemaVocabulary,
System.Boolean>>
System.Collections.Generic.IReadOnlyDictionary<
SchemaVocabulary,
System.Boolean>
System.Collections.Generic.IReadOnlyCollection<
System.Collections.Generic.KeyValuePair<
SchemaVocabulary,
System.Boolean>>
System.Collections.Generic.IEnumerable<
System.Collections.Generic.KeyValuePair<
SchemaVocabulary,
System.Boolean>>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.IEnumerable
System.Runtime.Serialization.IDeserializationCallback
System.Runtime.Serialization.ISerializable
Inherited Members
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.get_Item(System.Object)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Add(Manatee.Json.Schema.SchemaVocabulary, System.Boolean)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Clear()
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.ContainsKey(Manatee.Json.Schema.SchemaVocabulary)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.ContainsValue(System.Boolean)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.GetEnumerator()
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.OnDeserialization(System.Object)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Remove(Manatee.Json.Schema.SchemaVocabulary)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>>.Add(System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>>.Contains(System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>>.CopyTo(System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>[], System.Int32)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>>.Remove(System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>>.GetEnumerator()
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.Add(System.Object, System.Object)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.Contains(System.Object)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.GetEnumerator()
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.Remove(System.Object)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.TryGetValue(Manatee.Json.Schema.SchemaVocabulary, System.Boolean)
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Comparer
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Count
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Item[Manatee.Json.Schema.SchemaVocabulary]
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Keys
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>>.IsReadOnly
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.IDictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Keys
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.IDictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Values
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.IReadOnlyDictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Keys
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.Generic.IReadOnlyDictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Values
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.IsFixedSize
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.IsReadOnly
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.Item[System.Object]
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.Keys
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.System.Collections.IDictionary.Values
System.Collections.Generic.Dictionary<Manatee.Json.Schema.SchemaVocabulary, System.Boolean>.Values
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Manatee.Json.dll
Syntax
public class VocabularyKeyword : Dictionary<SchemaVocabulary, bool>, IDictionary<SchemaVocabulary, bool>, ICollection<KeyValuePair<SchemaVocabulary, bool>>, IReadOnlyDictionary<SchemaVocabulary, bool>, IReadOnlyCollection<KeyValuePair<SchemaVocabulary, bool>>, IEnumerable<KeyValuePair<SchemaVocabulary, bool>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable, IJsonSchemaKeyword, IJsonSerializable, IEquatable<IJsonSchemaKeyword>, IEquatable<VocabularyKeyword>
Properties
|
Improve this Doc
View Source
Name
Gets the name of the keyword.
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SupportedVersions
Gets the versions (drafts) of JSON Schema which support this keyword.
Declaration
public JsonSchemaVersion SupportedVersions { get; }
Property Value
|
Improve this Doc
View Source
ValidationSequence
Gets the a value indicating the sequence in which this keyword will be evaluated.
Declaration
public int ValidationSequence { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Vocabulary
Gets the vocabulary that defines this keyword.
Declaration
public SchemaVocabulary Vocabulary { get; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(Nullable<IJsonSchemaKeyword>)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(IJsonSchemaKeyword? other)
Parameters
Type |
Name |
Description |
System.Nullable<IJsonSchemaKeyword> |
other |
An object to compare with this object.
|
Returns
Type |
Description |
System.Boolean |
true if the current object is equal to the other parameter; otherwise, false.
|
|
Improve this Doc
View Source
Equals(Nullable<VocabularyKeyword>)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(VocabularyKeyword? other)
Parameters
Type |
Name |
Description |
System.Nullable<VocabularyKeyword> |
other |
An object to compare with this object.
|
Returns
Type |
Description |
System.Boolean |
true if the current object is equal to the other parameter; otherwise, false.
|
|
Improve this Doc
View Source
Equals(Nullable<Object>)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
System.Nullable<System.Object> |
obj |
The object to compare with the current object.
|
Returns
Type |
Description |
System.Boolean |
true if the specified object is equal to the current object; otherwise, false.
|
|
Improve this Doc
View Source
FromJson(JsonValue, JsonSerializer)
Declaration
public void FromJson(JsonValue json, JsonSerializer serializer)
Parameters
|
Improve this Doc
View Source
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
A hash code for the current object.
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
RegisterSubschemas(SchemaValidationContext)
Used register any subschemas during validation. Enables look-forward compatibility with $ref
keywords.
Declaration
public void RegisterSubschemas(SchemaValidationContext context)
Parameters
|
Improve this Doc
View Source
ResolveSubschema(JsonPointer, Uri, JsonSchemaVersion)
Resolves any subschemas during resolution of a $ref
during validation.
Declaration
public JsonSchema? ResolveSubschema(JsonPointer pointer, Uri baseUri, JsonSchemaVersion supportedVersions)
Parameters
Type |
Name |
Description |
JsonPointer |
pointer |
A JsonPointer to the target schema.
|
System.Uri |
baseUri |
The current base URI.
|
JsonSchemaVersion |
supportedVersions |
Indicates the root schema's supported versions.
|
Returns
Type |
Description |
System.Nullable<JsonSchema> |
The referenced schema, if it exists; otherwise null.
|
|
Improve this Doc
View Source
ToJson(JsonSerializer)
Declaration
public JsonValue ToJson(JsonSerializer serializer)
Parameters
Returns
|
Improve this Doc
View Source
Validate(SchemaValidationContext)
Provides the validation logic for this keyword.
Declaration
public SchemaValidationResults Validate(SchemaValidationContext context)
Parameters
Returns
Type |
Description |
SchemaValidationResults |
Results object containing a final result and any errors that may have been found.
|
Implements
System.Collections.Generic.IDictionary<TKey, TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IDictionary
System.Collections.ICollection
System.Collections.IEnumerable
System.Runtime.Serialization.IDeserializationCallback
System.Runtime.Serialization.ISerializable
System.IEquatable<T>
System.IEquatable<T>
Extension Methods