Home KeywordExtensions Class
KeywordExtensions Class
Cancel

KeywordExtensions Class

Namespace: Json.Schema

Inheritance: KeywordExtensions 🡒 object

Some extensions for Json.Schema.IJsonSchemaKeyword.

Methods

Keyword(this IJsonSchemaKeyword keyword)

Gets the keyword string.

Declaration

1
public static string Keyword(this IJsonSchemaKeyword keyword)
ParameterTypeDescription
keywordIJsonSchemaKeywordThe keyword.

Returns

The keyword string.

Keyword(this Type keywordType)

Gets the keyword string.

Declaration

1
public static string Keyword(this Type keywordType)
ParameterTypeDescription
keywordTypeTypeThe keyword type.

Returns

The keyword string.

Priority(this IJsonSchemaKeyword keyword)

Gets the keyword priority.

Declaration

1
public static long Priority(this IJsonSchemaKeyword keyword)
ParameterTypeDescription
keywordIJsonSchemaKeywordThe keyword.

Returns

The priority.

SupportsVersion(this IJsonSchemaKeyword keyword, SpecVersion version)

Determines if a keyword is declared by a given version of the JSON Schema specification.

Declaration

1
public static bool SupportsVersion(this IJsonSchemaKeyword keyword, SpecVersion version)
ParameterTypeDescription
keywordIJsonSchemaKeywordThe keyword.
versionSpecVersionThe queried version.

Returns

true if the keyword is supported by the version; false otherwise

VersionsSupported(this IJsonSchemaKeyword keyword)

Gets the specification versions supported by a keyword.

Declaration

1
public static SpecVersion VersionsSupported(this IJsonSchemaKeyword keyword)
ParameterTypeDescription
keywordIJsonSchemaKeywordThe keyword.

Returns

The specification versions as a single flags value.

Contents