@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
18 lines (17 loc) • 367 B
JavaScript
import { JsonEntityFn } from "./jsonEntityFn.js";
/**
* See https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.26
*
* @decorator
* @validation
* @swagger
* @schema
* @classDecorator
* @input
* @param allOf
*/
export function AllOf(...allOf) {
return JsonEntityFn((entity) => {
entity.itemSchema.allOf(allOf);
});
}