# Decorator OneOf
Decorator validation swagger schema classDecorator inputModule | import { OneOf } from "@tsed/schema" |
---|---|
Source | /packages/specs/schema/src/types/decorators/common/oneOf.ts |
# Overview
function OneOf(...oneOf: AnyJsonSchema[]): (...args: any[]) => any;
# Description
See https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.28
WARNING
OneOf isn't supported by OS2