{ "swagger": "2.0", "info": { "title": "Resource Inventory Management", "description": "A simple resource schema sample" }, "definitions": { "Resource": { "type": "object", "required": [ "id", "name" ], "properties": { "id": { "type": "string", "description": "Unique identifier of the resource" }, "name": { "type": "string" }, "location": { "type": "string" }, "note": { "type": "array", "items": { "$ref": "#/definitions/Note" }, "description": "A list of notes made on this resource" } } }, "Note": { "type": "object", "required": [ "text" ], "properties": { "author": { "type": "string", "description": "Author of the note" }, "date": { "type": "string", "format": "date-time", "description": "Date of the note" }, "text": { "type": "string", "description": "Text of the note" } } } } }