java - Map object in swagger -


i trying create map object in swagger

definitions:   foo:    description: sample class    required:      - param    properties:     param:      type: object      description: param map<string, object> object derivative of java.lang.object      additionalproperties:         type: object 

swagger generating clent stub below code

public class foo  {  private map<string, object> param = new hashmap<string, object>();  getters();  setters(); } 

but generating unused , unreferenced import statement

import io.swagger.model.object; 

i trying generate client stub jax-rs api using below statement

java -jar "../swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar" generate -i /../src/main/resources/swagger/swagger.yaml -l jaxrs -o sample 

please tell me if doing right create map object reference java.lang class


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -