# Decorator OneOf

Decorator validation swagger schema classDecorator input
Module
import { OneOf } from "@tsed/schema"
Source/packages/schema/src/decorators/common/oneOf.ts

# Overview

function OneOf(...oneOf: (Partial<JSONSchema6> | JsonSchema)[]): (...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

Other topics