--
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.
Hi, we are adding the oneOf and anyOf support in 3.0, and I believe the “nullable” support is being added as well.
// In JSON Schema
{
"type": ["string", "null"]
}
// Or, using anyOf
{
"anyOf":[
{"type": "string"},
{"type": "null"}
]
}
“null” is not a valid type in swagger, nor is “anyOf” or multi-types.
Please NOTE: This electronic message, including any attachments, may include privileged, confidential and/or inside information owned by Leaf Group. Any distribution or use of this communication by anyone other than the intended recipient(s) is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify the sender by replying to this message and then delete it from your system. Thank you.