# Decorator OneOf
Decorator validation swagger schema classDecorator inputModule | 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
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Seq
- OIDC
- Stripe
- Controllers
- Providers
- Model
- JsonMapper
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Exceptions
- Hooks
- Response Filter
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing