Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SchemaParser

A parser that can parse a JSON string and create a SchemaImpl

Hierarchy

  • SchemaParser

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create a SchemaParser

    Parameters

    • recordV2Constructor: {}

      a constructor function for creating RecordV2 implementations

    Returns SchemaParser

Properties

Private Readonly recordV2Constructor

recordV2Constructor: {}

A constructor function for creating RecordV2 implementations

Type declaration

Methods

parse

  • Parse a JSON string

    throws

    a SchemaParseError if the JSON string could not be converted into a schema

    throws

    a SchemaViolationError if the JSON string does not represent a valid schema

    Parameters

    • jsonString: string

      the JSON string

    Returns SchemaImpl

    a schema object

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.