"NetworkResource": { "description": "SIM, mobile number, or IMEI used by the customer to gain access to services.", "type": "object", "properties": { "imei": { "maxLength": 15, "minLength": 15, "type": "string", "pattern": "[0-9]{15}" }, "sim": { "$ref": "#/definitions/SIM" }, "mobileNumber": { "$ref": "#/definitions/MobileNumber" }, "resourceStatus": { "type": "array", "items": { "$ref": "#/definitions/ResourceStatus" } } } }
In the above Object I need to handle choice bit ween "mobileNumber" , "sim".
How we will represent in swagger 2.0. Can you please help on this.
The next version of the spec (not released yet) already has support for this.
--
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 swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.