Skip to content

[T] OneOfDecorator

type OneOfDecorator = (context, target) => DecoratorValidatorCallbacks | void;

Specify that oneOf should be used instead of anyOf for that union.

ParameterType
contextDecoratorContext
targetUnion | ModelProperty

DecoratorValidatorCallbacks | void