Show / Hide Table of Contents

Class AnyOfKeyword

Defines the anyOf JSON Schema keyword.

Inheritance
System.Object
System.Collections.Generic.List<JsonSchema>
AnyOfKeyword
Implements
System.Collections.Generic.IList<JsonSchema>
System.Collections.Generic.ICollection<JsonSchema>
System.Collections.Generic.IReadOnlyList<JsonSchema>
System.Collections.Generic.IReadOnlyCollection<JsonSchema>
System.Collections.Generic.IEnumerable<JsonSchema>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
IJsonSchemaKeyword
IJsonSerializable
System.IEquatable<IJsonSchemaKeyword>
System.IEquatable<AnyOfKeyword>
Inherited Members
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.get_Item(System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Add(Manatee.Json.Schema.JsonSchema)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.AddRange(System.Collections.Generic.IEnumerable<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.AsReadOnly()
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.BinarySearch(Manatee.Json.Schema.JsonSchema)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.BinarySearch(Manatee.Json.Schema.JsonSchema, System.Collections.Generic.IComparer<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.BinarySearch(System.Int32, System.Int32, Manatee.Json.Schema.JsonSchema, System.Collections.Generic.IComparer<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Clear()
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Contains(Manatee.Json.Schema.JsonSchema)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.ConvertAll<TOutput>(System.Converter<Manatee.Json.Schema.JsonSchema, TOutput>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.CopyTo(Manatee.Json.Schema.JsonSchema[])
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.CopyTo(Manatee.Json.Schema.JsonSchema[], System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.CopyTo(System.Int32, Manatee.Json.Schema.JsonSchema[], System.Int32, System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Exists(System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Find(System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.FindAll(System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.FindIndex(System.Int32, System.Int32, System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.FindIndex(System.Int32, System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.FindIndex(System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.FindLast(System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.FindLastIndex(System.Int32, System.Int32, System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.FindLastIndex(System.Int32, System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.FindLastIndex(System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.ForEach(System.Action<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.GetEnumerator()
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.GetRange(System.Int32, System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.IndexOf(Manatee.Json.Schema.JsonSchema)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.IndexOf(Manatee.Json.Schema.JsonSchema, System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.IndexOf(Manatee.Json.Schema.JsonSchema, System.Int32, System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Insert(System.Int32, Manatee.Json.Schema.JsonSchema)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.InsertRange(System.Int32, System.Collections.Generic.IEnumerable<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.LastIndexOf(Manatee.Json.Schema.JsonSchema)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.LastIndexOf(Manatee.Json.Schema.JsonSchema, System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.LastIndexOf(Manatee.Json.Schema.JsonSchema, System.Int32, System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Remove(Manatee.Json.Schema.JsonSchema)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.RemoveAll(System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.RemoveAt(System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.RemoveRange(System.Int32, System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Reverse()
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Reverse(System.Int32, System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Sort()
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Sort(System.Collections.Generic.IComparer<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Sort(System.Comparison<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Sort(System.Int32, System.Int32, System.Collections.Generic.IComparer<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.Generic.IEnumerable<Manatee.Json.Schema.JsonSchema>.GetEnumerator()
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.Add(System.Object)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.Contains(System.Object)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.IndexOf(System.Object)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.Remove(System.Object)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.ToArray()
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.TrimExcess()
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.TrueForAll(System.Predicate<Manatee.Json.Schema.JsonSchema>)
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Capacity
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Count
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.Item[System.Int32]
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.Generic.ICollection<Manatee.Json.Schema.JsonSchema>.IsReadOnly
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.ICollection.IsSynchronized
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.ICollection.SyncRoot
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.IsFixedSize
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.IsReadOnly
System.Collections.Generic.List<Manatee.Json.Schema.JsonSchema>.System.Collections.IList.Item[System.Int32]
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()
Namespace: Manatee.Json.Schema
Assembly: Manatee.Json.dll
Syntax
public class AnyOfKeyword : List<JsonSchema>, IList<JsonSchema>, ICollection<JsonSchema>, IReadOnlyList<JsonSchema>, IReadOnlyCollection<JsonSchema>, IEnumerable<JsonSchema>, IList, ICollection, IEnumerable, IJsonSchemaKeyword, IJsonSerializable, IEquatable<IJsonSchemaKeyword>, IEquatable<AnyOfKeyword>

Properties

| Improve this Doc View Source

ErrorTemplate

Gets or sets the error message template.

Declaration
public static string ErrorTemplate { get; set; }
Property Value
Type Description
System.String
Remarks

Does not supports any tokens.

| 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
Type Description
JsonSchemaVersion
| 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
Type Description
SchemaVocabulary

Methods

| Improve this Doc View Source

Equals(Nullable<AnyOfKeyword>)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(AnyOfKeyword? other)
Parameters
Type Name Description
System.Nullable<AnyOfKeyword> 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<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<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)

Builds an object from a JsonValue.

Declaration
public void FromJson(JsonValue json, JsonSerializer serializer)
Parameters
Type Name Description
JsonValue json

The JsonValue representation of the object.

JsonSerializer serializer

The JsonSerializer instance to use for additional serialization of values.

| 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
Type Name Description
SchemaValidationContext context

The context object.

| 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)

Converts an object to a JsonValue.

Declaration
public JsonValue ToJson(JsonSerializer serializer)
Parameters
Type Name Description
JsonSerializer serializer

The JsonSerializer instance to use for additional serialization of values.

Returns
Type Description
JsonValue

The JsonValue representation of the object.

| Improve this Doc View Source

Validate(SchemaValidationContext)

Provides the validation logic for this keyword.

Declaration
public SchemaValidationResults Validate(SchemaValidationContext context)
Parameters
Type Name Description
SchemaValidationContext context

The context object.

Returns
Type Description
SchemaValidationResults

Results object containing a final result and any errors that may have been found.

Implements

System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
IJsonSchemaKeyword
IJsonSerializable
System.IEquatable<T>
System.IEquatable<T>

Extension Methods

LinqExtensions.ToJson<T>(IEnumerable<T>, JsonSerializer)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX