1) When writing RAML, can I use nesting in my schema definition?
For instance:
schemas: - DNSResponse: | { "type": "object", "properties": { "AnswerSection": { "type": "array", "items": (((I want a re-useable schema here. ex: ARecord))) }, "AA": {"type": "boolean"}, "AD": {"type": "boolean"}, ... } } - ARecord: | { "type": "object", "properties": { "address": "string", "ttl": "number", "name": "string" } }
2) Can I use selection / enumeration around a set of nesting schemes?
"items": [ARecord, MXRecord, PTRRecord, ...]
source share