Skip to content

Instantly share code, notes, and snippets.

@fsouza
Created March 2, 2016 18:17
Show Gist options
  • Save fsouza/fc7e6d58c6e804069dd3 to your computer and use it in GitHub Desktop.
Save fsouza/fc7e6d58c6e804069dd3 to your computer and use it in GitHub Desktop.
diff --git a/scan/scanner.go b/scan/scanner.go
index 5b62583..0110bbc 100644
--- a/scan/scanner.go
+++ b/scan/scanner.go
@@ -376,7 +376,7 @@ func swaggerSchemaForType(typeName string, prop swaggerTypable) error {
switch typeName {
case "bool":
prop.Typed("boolean", "")
- case "rune", "string":
+ case "rune", "string", "error":
prop.Typed("string", "")
case "int8":
prop.Typed("integer", "int8")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment