Hi,
I am new to swagger and have started creating a sample API doc.
Request elements in post methods have multiple sub list and have mapped
giving reference link to definitions.
Sample :
Request:
type: "object"
properties:
basicDetails:
type: "array"
items:
$ref: "#/definitions/BasicDetails"
definitions:
BasicDetails:
type: "object"
properties:
phoneList
type: "array"
items:
$ref: "#/definitions/PhoneDetails"
PhoneDetails:
type: "object"
properties:
phoneType:
type: "string"
format: "string"
phoneNumber:
type: "string"
format: "string"
phoneExt:
type: "string"
format: "string"
title: "PhoneDetails"
This piece shows no error but when we generate the client code it will
show warning as PhoneDetails not used and Properties part of
PhoneDetails will be deleted automatically
Kindly help its urgent !
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.