Decorate property in model class.
Example:
@ApiModel({
description: "Version description",
name: "Version"
})
export class VersionModel {
@ApiModelProperty({
description: "number value",
enum : ['1', '2']
})
number: number;
...
}
Define if property is required.
- Optional
Define format.
- Optional
Define type of property.
- Optional
Define description of property.
- Optional
Define enum of property.
- Optional
Define model
- Optional
Define item type.
- Optional
Define example.
- Optional