java - how to implements swagger config for interface class? -
i have following class structure
class classa{private interfaceb field1;private classc fiels2;} interface b{} class d implements interfaceb{private string field1;private classe field2;private string field3}
this produces swagger json till interface below
{"swagger":"2.0","host":"localhost:8080","basepath":"/basepath","tags":[{"name":"controller","description":"controllerr"}],"definitions":{"classa":{"type":"object","properties":{"field1":{"type":"array","items":{"$ref":"#/definitions/classb"}},"errors":{"type":"array","items":{"$ref":"#/definitions/classc"}}}},"classc":{"type":"object","properties":{"field1":{"type":"string"},"field2":{"type":"string"},"field3":{"type":"string"},"field4":{"type":"string"}}},"classb":{"type":"object"}}}
here problem not getting classd , on classes , fields. don't know how overcome interface in this. please me.
Comments
Post a Comment