You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FATAL 0321-12:50:40.034+08 api.go:61 | json: error calling MarshalJSON for type spec.Swagger: json: error calling MarshalJSON for type *spec.Paths: json: error calling MarshalJSON for type spec.PathItem: json: error calling MarshalJSON for type *spec.Operation: json: error calling MarshalJSON for type spec.OperationProps: json: error calling MarshalJSON for type spec.Parameter: json: error calling MarshalJSON for type *swagger.rawJSON: invalid character 'w' looking for beginning of value
What you expected to happen:
nirvana api can work correctly.
How to reproduce it (as minimally and precisely as possible):
Define a struct which relating to Auto parameter, set string default value without double quotation:
If set default value with double quotation, then nirvana api can work, but bussiness function will be getting addition double quotation from that option.
The marjor issue is normal parameter default value coming from json
decoding which will including double quotation for string type or base
string type, but for auto parameter default value coming from tag default
raw value.
Taizeng Wu <[email protected]>于2019年3月21日 周四下午7:13写道:
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
nirvana api
starting failed with logging:FATAL 0321-12:50:40.034+08 api.go:61 | json: error calling MarshalJSON for type spec.Swagger: json: error calling MarshalJSON for type *spec.Paths: json: error calling MarshalJSON for type spec.PathItem: json: error calling MarshalJSON for type *spec.Operation: json: error calling MarshalJSON for type spec.OperationProps: json: error calling MarshalJSON for type spec.Parameter: json: error calling MarshalJSON for type *swagger.rawJSON: invalid character 'w' looking for beginning of value
What you expected to happen:
nirvana api
can work correctly.How to reproduce it (as minimally and precisely as possible):
Define a struct which relating to Auto parameter, set string default value without double quotation:
Anything else we need to know?:
If set default value with double quotation, then
nirvana api
can work, but bussiness function will be getting addition double quotation from that option.Additionally, how to support not basic type correctly, e.g.
The text was updated successfully, but these errors were encountered: