Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer Type is not supported #38

Closed
egandro opened this issue Jan 6, 2017 · 2 comments
Closed

Buffer Type is not supported #38

egandro opened this issue Jan 6, 2017 · 2 comments

Comments

@egandro
Copy link
Contributor

egandro commented Jan 6, 2017

export interface FooData {
    id: string;
    jsonData: Buffer;
}

Error: No matching model found for referenced type Buffer

We should map Buffer to string.

@lukeautry
Copy link
Owner

@egandro Take a look at this PR: #40

Here is the swagger.json section that gets generated:

"/GetTest/HandleBufferType": {
			"get": {
				"operationId": "getBuffer",
				"produces": [
					"application/json"
				],
				"responses": {
					"200": {
						"description": "",
						"examples": {},
						"schema": {
							"type": "string",
							"format": "base64"
						}
					}
				},
				"description": "",
				"parameters": [
					{
						"description": "",
						"in": "query",
						"name": "buffer",
						"required": true,
						"type": "string",
						"format": "base64"
					}
				]
			}
		},

Let me know how this lines up with what you were expecting.

@lukeautry
Copy link
Owner

@egandro The PR referenced above has been merged, so this is live in 1.0.13. Let me know how it works out for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants