YamlSchemaExporter class
Functionality for exporting JSON schema from serialization contracts defined in YamlTypeInfo.
Namespace: System.Text.Yaml.Schema ยท Assembly: Styml.dll
public static class YamlSchemaExporter
Functionality for exporting JSON schema from serialization contracts defined in YamlTypeInfo.
MethodsLink to this heading
GetYamlSchemaAsNodeLink to this heading
Gets the JSON schema for type as a YamlNode document.
public static YamlNode GetYamlSchemaAsNode(this YamlSerializerOptions options, Type type, YamlSchemaExporterOptions? exporterOptions = null);
Parameters
options: The options declaring the contract for the type.type: The type for which to resolve a schema.exporterOptions: The options object governing the export operation.
Returns: A YAML object containing the schema for type.
Gets the JSON schema for typeInfo as a YamlNode document.
public static YamlNode GetYamlSchemaAsNode(this YamlTypeInfo typeInfo, YamlSchemaExporterOptions? exporterOptions = null);
Parameters
typeInfo: The contract from which to resolve the JSON schema.exporterOptions: The options object governing the export operation.
Returns: A YAML object containing the schema for typeInfo.