ref property

String? ref
getter/setter pair

Allows referencing another schema definition to use in place of this schema.

The value must be a valid reference to a schema in defs. For example, the following schema defines a reference to a schema node named "Pet": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the "pet" property is a reference to the schema node named "Pet". See details in https://json-schema.org/understanding-json-schema/structuring

Optional.

Implementation

core.String? ref;