invoke

abstract operator fun invoke(getRefMarker: GetRefMarker, produceAdditionalMarker: ProduceAdditionalMarker): MarkerResult

Represents a call to toMarker that can be repeated until it returns a MarkerResult.OpenApiMarker.

Return

A MarkerResult.OpenApiMarker if successful, otherwise MarkerResult.CannotFindRefMarker.

Parameters

getRefMarker

A function that returns a Marker for a given reference name if successful.

produceAdditionalMarker

A function that produces an additional Marker for a given name. This is used for object types not present in the root of components/schemas.