oneOf (inoneOf, anyOf, allOf, not) SPEC see
https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/
Em quinta-feira, 29 de outubro de 2015 04:33:28 UTC-2, Nandigam Anil
escreveu:
>
> "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.
>
>
--
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.