Table of Contents

Class SchemaAwareJsonDataProvider

Namespace
combit.Reporting.DataProviders
Assembly
combit.ListLabel31.CrossPlatform.SchemaAwareJsonDataProvider.dll

Provides JSON data handling with schema awareness, allowing for validation and structured processing. Inherits from JsonDataProvider and extends its functionality to work with JSON schema definitions.

public class SchemaAwareJsonDataProvider : JsonDataProvider, IDataProvider, ISerializable, ISupportsLogger
Inheritance
SchemaAwareJsonDataProvider
Implements
Inherited Members

Constructors

SchemaAwareJsonDataProvider(TextReader)

Initializes a new instance of the SchemaAwareJsonDataProvider class using a TextReader.

public SchemaAwareJsonDataProvider(TextReader reader)

Parameters

reader TextReader

The text reader containing JSON data.

SchemaAwareJsonDataProvider(string)

Initializes a new instance of the SchemaAwareJsonDataProvider class using a JSON string.

public SchemaAwareJsonDataProvider(string json)

Parameters

json string

The JSON string to parse.

SchemaAwareJsonDataProvider(string, JsonDataProviderOptions)

Initializes a new instance of the SchemaAwareJsonDataProvider class using a file path or URL.

public SchemaAwareJsonDataProvider(string filePathOrUrl, JsonDataProviderOptions options)

Parameters

filePathOrUrl string

The file path or URL to the JSON data.

options JsonDataProviderOptions

The JSON data provider options.

Properties

Schema

Gets or sets the file path or URL that points to a JSON schema definition. The schema is resolved using the provided SchemaFileProvider. If SchemaFileProvider is not set, the default FileProvider will be used.

- Properties must be directly provided under the "properties" key (single schema format). - "AnyOf" schemas are not currently supported. - The RootTableName is set to the schema title. - The ArrayValueName is set to the array item name if the data is an array.

public string Schema { get; set; }

Property Value

string
See Also

SchemaFileProvider

Gets or sets the NetworkFileProvider used for resolving the Schema. If not set, FileProvider will be used as a fallback.

public NetworkFileProvider SchemaFileProvider { get; set; }

Property Value

NetworkFileProvider

UseUniqueTables

Gets or sets a value indicating whether to generate a unique table for each subschema. If false, a single table will be generated for each subschema, even if used multiple times in the schema.

public bool UseUniqueTables { get; set; }

Property Value

bool