Table of Contents

Interface ISchemaApi

Namespace
MegaForm.Sdk
Assembly
MegaForm.Sdk.dll

Parse a form's schema JSON into typed field metadata (pure, no I/O).

public interface ISchemaApi

Methods

Parse(string)

Parse a form's SchemaJson into typed FormSchemaInfo. Never throws on malformed JSON — returns an empty schema (mirrors the server's fail-soft schema resolver). Row layout is flattened so the field list matches what the server validates.

FormSchemaInfo Parse(string schemaJson)

Parameters

schemaJson string

Returns

FormSchemaInfo

ParseForm(FormDto)

Convenience overload: parse form.SchemaJson. Throws ArgumentNullException when form is null.

FormSchemaInfo ParseForm(FormDto form)

Parameters

form FormDto

Returns

FormSchemaInfo