-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for path param repeated primitive fields
Added conversion functions for repeated path params Updated bytes converter to support URL encoded base64 strings Added support for repeated primitive path params in protoc-gen-grpc-gateway Added support for repeated primitive path params in protoc-gen-swagger Added --repeated_path_param_separator cmd line param to support setting separator to `csv`, `ssv`, `pipes` and `tsv` Re-generated examples Added ABitOfEverythingRepeated to validate repeated path parameter functionality Added GetRepeatedQuery rpc endpoint Updated browser tests to test GetRepeatedQuery rpc endpoint Updated integration tests to test GetRepeatedQuery rpc endpoint Added GetRepeatedQuery to ABitOfEverythingServer implementation Added missing reflect.DeepEqual test Change separator type from string to rune Fixed slice duplication in string slice conversion method Reverted --allowRepeatedFieldsInBody in swagger generator Changed TODO of bytes slice proto2 function Corrected if-statement releated to repeated fields in resolveFieldPath function Rebase
- Loading branch information
1 parent
0e59487
commit ab0345b
Showing
20 changed files
with
1,651 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
examples/clients/abe/examplepb_a_bit_of_everything_repeated.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* A Bit of Everything | ||
* | ||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) | ||
* | ||
* OpenAPI spec version: 1.0 | ||
* Contact: none@example.com | ||
* Generated by: https://github.com/swagger-api/swagger-codegen.git | ||
*/ | ||
|
||
package abe | ||
|
||
type ExamplepbABitOfEverythingRepeated struct { | ||
|
||
PathRepeatedFloatValue []float32 `json:"path_repeated_float_value,omitempty"` | ||
|
||
PathRepeatedDoubleValue []float64 `json:"path_repeated_double_value,omitempty"` | ||
|
||
PathRepeatedInt64Value []string `json:"path_repeated_int64_value,omitempty"` | ||
|
||
PathRepeatedUint64Value []string `json:"path_repeated_uint64_value,omitempty"` | ||
|
||
PathRepeatedInt32Value []int32 `json:"path_repeated_int32_value,omitempty"` | ||
|
||
PathRepeatedFixed64Value []string `json:"path_repeated_fixed64_value,omitempty"` | ||
|
||
PathRepeatedFixed32Value []int64 `json:"path_repeated_fixed32_value,omitempty"` | ||
|
||
PathRepeatedBoolValue []bool `json:"path_repeated_bool_value,omitempty"` | ||
|
||
PathRepeatedStringValue []string `json:"path_repeated_string_value,omitempty"` | ||
|
||
PathRepeatedBytesValue []string `json:"path_repeated_bytes_value,omitempty"` | ||
|
||
PathRepeatedUint32Value []int64 `json:"path_repeated_uint32_value,omitempty"` | ||
|
||
PathRepeatedEnumValue []ExamplepbNumericEnum `json:"path_repeated_enum_value,omitempty"` | ||
|
||
PathRepeatedSfixed32Value []int32 `json:"path_repeated_sfixed32_value,omitempty"` | ||
|
||
PathRepeatedSfixed64Value []string `json:"path_repeated_sfixed64_value,omitempty"` | ||
|
||
PathRepeatedSint32Value []int32 `json:"path_repeated_sint32_value,omitempty"` | ||
|
||
PathRepeatedSint64Value []string `json:"path_repeated_sint64_value,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.