JSONPath Tools / @jsonpath-tools/jsonpath / DataTypeAnnotation
Class: DataTypeAnnotation
Annotation of a data type (description, example values, ...).
Constructors
new DataTypeAnnotation()
ts
new DataTypeAnnotation(
title,
description,
deprecated,
readOnly,
writeOnly,
defaultValue,
exampleValues): DataTypeAnnotation
Parameters
title
string
Title.
description
string
Description.
deprecated
boolean
Whether it is deprecated.
readOnly
boolean
Whether it is read-only.
writeOnly
boolean
Whether it is write-only.
defaultValue
Default value or undefined
if no default value is defined.
undefined
| JSONValue
exampleValues
readonly JSONValue
[]
Example of values.
Returns
DataTypeAnnotation
Properties
defaultValue
ts
readonly defaultValue: undefined | JSONValue;
Default value or undefined
if no default value is defined.
deprecated
ts
readonly deprecated: boolean;
Whether it is deprecated.
description
ts
readonly description: string;
Description.
exampleValues
ts
readonly exampleValues: readonly JSONValue[];
Example of values.
readOnly
ts
readonly readOnly: boolean;
Whether it is read-only.
title
ts
readonly title: string;
Title.
writeOnly
ts
readonly writeOnly: boolean;
Whether it is write-only.
EMPTY_SET
ts
readonly static EMPTY_SET: ReadonlySet<DataTypeAnnotation>;