Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PartialJSONImpl

A constraint that partially matches the current JSON topic value

Hierarchy

Implements

Index

Constructors

constructor

  • new PartialJSONImpl(withValues?: object, withoutValues?: Set<string>): PartialJSONImpl
  • Create a new PartialJSONImpl instance

    Parameters

    • Default value withValues: object = {}

      the values required to exist in the JSON value

    • Default value withoutValues: Set<string> = new Set()

      the JSON pointers that should hold no value

    Returns PartialJSONImpl

Properties

withValues

withValues: object

The values required to exist in the JSON value indexed by their JSON pointer expression

Type declaration

withoutValues

withoutValues: Set<string>

The JSON pointer expressions that should be empty in the JSON value

Methods

and

getConstraintType

  • getConstraintType(): string

getWithValues

  • getWithValues(): object
  • Get the required JSON values

    Returns object

    the a map of JSON values that are required

getWithoutValues

  • getWithoutValues(): Set<string>
  • Get the JSON pointer expressions that should be empty in the JSON value

    Returns Set<string>

    a set of pointer expressions

with

  • inheritdoc

    Parameters

    Returns PartialJSON

without

  • inheritdoc

    Parameters

    Returns PartialJSON