(status: number, description: string)
| 764 | } |
| 765 | |
| 766 | function addNoContent(status: number, description: string) { |
| 767 | const statusMap = map.get(status) |
| 768 | if (statusMap === undefined) { |
| 769 | map.set(status, { |
| 770 | descriptions: new Set([description]), |
| 771 | content: undefined, |
| 772 | headers: [], |
| 773 | streamContent: undefined |
| 774 | }) |
| 775 | } else { |
| 776 | if (description !== undefined) { |
| 777 | statusMap.descriptions.add(description) |
| 778 | } |
| 779 | } |
| 780 | } |
| 781 | |
| 782 | function addContent( |
| 783 | schema: Schema.Constraint, |