# Decorator Summary
Decorator swagger schema operationModule | import { Summary } from "@tsed/schema" |
---|---|
Source | /packages/specs/schema/src/types/decorators/operations/summary.ts |
# Overview
function Summary(summary: string): (...args: any[]) => any;
# Description
Add summary metadata on the decorated element.
# Examples
# On method
class Model {
@Summary("summary")
id: string;
}
1
2
3
4
2
3
4