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
easonlin404 authored and Nerzal committed Jun 8, 2019
1 parent 13f436d commit c52d7bf
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
@@ -90,7 +90,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
}

0 comments on commit c52d7bf

Please sign in to comment.