SchemaGenerator Class

Creates a json editor schema structure for C# code.

Definition

Namespace: MFiles.VAF.Configuration.JsonEditor
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public class SchemaGenerator
Inheritance
Object    SchemaGenerator

Constructors

SchemaGenerator Constructor.

Properties

ConfigurationRequestContext The configuration request context.
DefaultEnumOptionGenerator  
EnumOptionGenerator  
MemberAddedCallback Event triggered when a member is added to a generated type editor.
ResourceManager The resource manager object for resolving the resource ids.

Methods

Generate Static convenience method used to generate a schema from a type.
GenerateSchema Generates a JSON editor schema for the object's Type. Recursively creates member definitions for it's members and it's members' members, also creating type editors for any member types that can't use an existing one.
GetEnumLabel Resolves a custom JsonConfEditorAttribute 'Label' from an Enum.
MergeDynamics Adds the values returned from IJsonConfEditorAttr.GetOptions() to the provided targetDynamic.

Fields

EditorsByType Explicit Mapping of C# types to existing JSON type editors. Types in this list will reference the associated editor name, and no type editor will be generated for them.

See Also