Commit 9221822
Adding support for default and required swagger annotation fields. (#852)
* Adding support for default and required swagger annotation fields:Solves issue #851
* Fixing test for swagger generation
* updating swagger definition
* removing breaking changes over enums
* Adding example for required field as an array1 parent 078fa17 commit 9221822
File tree
6 files changed
+251
-216
lines changed- examples
- clients/abe
- proto/examplepb
- protoc-gen-swagger/genswagger
6 files changed
+251
-216
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
524 | 525 | | |
525 | 526 | | |
526 | 527 | | |
527 | | - | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
| 552 | + | |
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments