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
SchemaText
The schema text.
public string? SchemaText { get; }
Property Value
Methods
FromNode(JsonObject)
Creates a schema from Cedar JSON grammar.
public static Schema FromNode(JsonObject node)
Parameters
node
JsonObjectThe schema node.
Returns
- Schema
The schema node.
FromText(string)
Creates a schema from Cedar schema grammar.
public static Schema FromText(string text)
Parameters
text
stringThe schema text.
Returns
- Schema
The schema.