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
My java method looks like :
Interface: int[][] getPrimitiveDouble3();
Impl:
@Override@ApiOperation(value = "This is test service - getPrimitiveDouble3")
@RequestMapping(value = "/getPrimitiveDouble3", method = GET)
@ResponseBodypublicint[][] getPrimitiveDouble3() {
returnnull;
}
I confirmed with Swagger team, looks like this is not the correct spec for 2D arrays [https://github.com/swagger-api/swagger-codegen/issues/1202]. Please let me know if this a bug.
Hi team,
I am using io.springfox:springfox-swagger2:2.1.1 jar to generate swagger specs. I am having issues with 2D arrays and nested maps.
The generated swagger spec looks like:
Issue with 2D arrays
My java method looks like :
Interface:
int[][] getPrimitiveDouble3();
Impl:
I confirmed with Swagger team, looks like this is not the correct spec for 2D arrays [https://github.com/swagger-api/swagger-codegen/issues/1202]. Please let me know if this a bug.
Generated Spec [Incorrect]
Expected Spec [Correct]
Issue with nested maps
My java method looks like :
Interface:
Map<String, Map<String, String>> getInnerMap();
Impl:
I confirmed with Swagger team, looks like this is not the correct spec for nested maps. Please let me know if this a bug.
Thanks,
Amit Bansal
The text was updated successfully, but these errors were encountered: