Skip to content

Commit

Permalink
refactor: return error instead of panic (swaggo#399)
Browse files Browse the repository at this point in the history
* refactor: return error instead of panic

* fix fmt check

* fix error check

* refine getPropertyName

* refine CheckSchemaType method
  • Loading branch information
easonlin404 authored and Tobias Theel committed Jun 12, 2019
1 parent 46160ea commit 0fc41fb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion property.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ func getPropertyName(expr ast.Expr, parser *Parser) (propertyName, error) {
}

if _, ok := expr.(*ast.MapType); ok { // if map
//TODO: support map
return propertyName{SchemaType: "object", ArrayType: "object"}, nil
}

Expand Down

0 comments on commit 0fc41fb

Please sign in to comment.