Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix: mark as binary
  • Loading branch information
mtojek committed Jan 3, 2023
commit c13dc1ccbb88be90f6c5e7fc136d95d8f76c469b
10 changes: 5 additions & 5 deletions docs/api/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ file: string

### Parameters

| Name | In | Type | Required | Description |
| -------------- | ------ | -------------- | -------- | ---------------------------------------- |
| `Content-Type` | header | string | true | Content-Type must be `application/x-tar` |
| `body` | body | object | true | |
| `» file` | body | string(binary) | true | File to be uploaded |
| Name | In | Type | Required | Description |
| -------------- | ------ | ------ | -------- | ---------------------------------------- |
| `Content-Type` | header | string | true | Content-Type must be `application/x-tar` |
| `body` | body | object | true | |
| `» file` | body | binary | true | File to be uploaded |

### Example responses

Expand Down
3 changes: 3 additions & 0 deletions scripts/apidocgen/markdown-template/parameters.def
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
const href = aType.replace(".","").toLowerCase();
return "[" + aType + "](schemas.md#" + href + ")";
}
if (p.safeType == 'string(binary)') {
return 'binary';
}
return p.safeType;
}
}}
Expand Down