Table of Contents

Class Schema

Namespace
CedarDotNet.Models
Assembly
CedarDotNet.dll

A Cedar schema.

[JsonConverter(typeof(SchemaJsonConverter))]
public sealed class Schema
Inheritance
Schema
Inherited Members

Properties

SchemaNode

The schema node.

public JsonObject? SchemaNode { get; }

Property Value

JsonObject

SchemaText

The schema text.

public string? SchemaText { get; }

Property Value

string

Methods

FromNode(JsonObject)

Creates a schema from Cedar JSON grammar.

public static Schema FromNode(JsonObject node)

Parameters

node JsonObject

The schema node.

Returns

Schema

The schema node.

FromText(string)

Creates a schema from Cedar schema grammar.

public static Schema FromText(string text)

Parameters

text string

The schema text.

Returns

Schema

The schema.