Function generateJsonSchema

  • Generate a JSON schema based on the given data and any additional options.

    Parameters

    • instance: Object

      the data to create a JSON schema for

    • options: any = {}

      any additional options that may alter the generated JSON schema

    Returns JsonSchema4

    the generated schema