Swagger codegen Api以字符串形式返回null

时间:2018-02-16 05:55:55

标签: null swagger-codegen

当我运行swagger代码生成器时,如果api方法返回字符串并且返回的数据为null,则返回为“null”。 当我检查Response主体时,它正确返回null。 但是,swagger mapper将其转换为字符串“null”。 是否有任何配置将其映射为null?

0 个答案:

没有答案
相关问题