Skip to content

Commit

Permalink
fix: fully support map and optimization (#583)
Browse files Browse the repository at this point in the history
* 1. parseTypeExpr return poionter to spec.Schema.
2. fully support map type, including map[string]interface{},map[string]primitive.
3. optimization: struct parsed as definition ref.

* remove useless comment

* 1.fix bug: lost pointer member'description .
2.fix bug: lost schema's general information such as field extensions.

* remove GOOS

Co-authored-by: Eason Lin <easonlin404@gmail.com>
  • Loading branch information
sdghchj and easonlin404 committed Dec 20, 2019
1 parent 6d49876 commit eb4805c
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 178 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ generated swagger doc as follows:

```go
type Account struct {
ID int `json:"id" extensions:"x-nullable,x-abc=def"` // extensions fields must start with "x-"
ID string `json:"id" extensions:"x-nullable,x-abc=def"` // extensions fields must start with "x-"
}
```

Expand Down

0 comments on commit eb4805c

Please sign in to comment.