{
    "definitions": {
        "lemon": {
            "$schema": "http://json-schema.org/draft-04/schema",
            "definitions": {
                "identity": {
                    "oneOf": [
                        {
                            "$ref": "#/definitions/lemon/definitions/lemon_uuid"
                        }
                    ]
                },
                "is_ripe": {
                    "description": "Whether or not the lemon is ripe",
                    "example": true,
                    "type": [
                        "boolean"
                    ]
                },
                "lemon_uuid": {
                    "description": "A unique uuid reference for the lemon",
                    "example": "44724831-bf66-4bc2-865f-e2c4c2b14c78",
                    "format": "uuid",
                    "readOnly": true,
                    "type": [
                        "string"
                    ]
                },
                "picked_on": {
                    "description": "The date on which the lemon was picked",
                    "example": "2013-10-19 22:10:29Z",
                    "format": "date-time",
                    "readOnly": true,
                    "type": [
                        "string"
                    ]
                },
                "size": {
                    "description": "The size of the lemon, 'small', 'medium' or 'large'",
                    "enum": [
                        "small",
                        "medium",
                        "large"
                    ],
                    "example": "small",
                    "readOnly": true
                }
            },
            "description": "For lovers of lemons, look no further.",
            "id": "schema/lemon",
            "links": [
                {
                    "description": "List all Lemons",
                    "href": "/lemon",
                    "method": "GET",
                    "rel": "instances",
                    "schema": {
                        "additionalProperties": false,
                        "properties": {
                            "size": {
                                "items": {
                                    "$ref": "#/definitions/lemon/definitions/size"
                                },
                                "maxItems": 2,
                                "type": [
                                    "array",
                                    "string"
                                ]
                            }
                        },
                        "type": [
                            "object"
                        ]
                    },
                    "title": "List"
                },
                {
                    "description": "Show a single Lemon",
                    "href": "/lemon/{(%23%2Fdefinitions%2Flemon%2Fdefinitions%2Flemon_uuid)}",
                    "method": "GET",
                    "rel": "self",
                    "title": "Info"
                },
                {
                    "description": "Create a new Lemon",
                    "href": "/lemon",
                    "method": "POST",
                    "rel": "create",
                    "schema": {
                        "properties": {
                            "is_ripe": {
                                "$ref": "#/definitions/lemon/definitions/is_ripe"
                            },
                            "lemon_uuid": {
                                "$ref": "#/definitions/lemon/definitions/lemon_uuid"
                            },
                            "picked_on": {
                                "$ref": "#/definitions/lemon/definitions/picked_on"
                            },
                            "size": {
                                "$ref": "#/definitions/lemon/definitions/size"
                            }
                        }
                    },
                    "title": "Create"
                },
                {
                    "description": "Update a sample lemon",
                    "href": "/lemon/{(%23%2Fdefinitions%2Flemon%2Fdefinitions%2Flemon_uuid)}",
                    "method": "PATCH",
                    "rel": "update",
                    "schema": {
                        "properties": {
                            "is_ripe": {
                                "$ref": "#/definitions/lemon/definitions/is_ripe"
                            },
                            "lemon_uuid": {
                                "$ref": "#/definitions/lemon/definitions/lemon_uuid"
                            },
                            "picked_on": {
                                "$ref": "#/definitions/lemon/definitions/picked_on"
                            },
                            "size": {
                                "$ref": "#/definitions/lemon/definitions/size"
                            }
                        }
                    },
                    "title": "Update"
                },
                {
                    "description": "Delete a whole size of lemons, you murderer",
                    "href": "/lemon/{(%23%2Fdefinitions%2Flemon%2Fdefinitions%2Fsize)}",
                    "method": "DELETE",
                    "rel": "destroy",
                    "title": "Delete"
                }
            ],
            "properties": {
                "is_ripe": {
                    "$ref": "#/definitions/lemon/definitions/is_ripe"
                },
                "lemon_uuid": {
                    "$ref": "#/definitions/lemon/definitions/lemon_uuid"
                },
                "picked_on": {
                    "$ref": "#/definitions/lemon/definitions/picked_on"
                },
                "size": {
                    "$ref": "#/definitions/lemon/definitions/size"
                }
            },
            "title": "Lemons",
            "type": [
                "object"
            ]
        },
        "lime": {
            "$schema": "http://json-schema.org/draft-04/schema",
            "definitions": {
                "identity": {
                    "oneOf": [
                        {
                            "$ref": "#/definitions/lime/definitions/lime_uuid"
                        }
                    ]
                },
                "lime_uuid": {
                    "description": "A unique uuid reference for the lime",
                    "example": "44724831-bf66-4bc2-865f-e2c4c2b14c78",
                    "format": "uuid",
                    "readOnly": true,
                    "type": [
                        "string"
                    ]
                },
                "picked_on": {
                    "description": "The date on which the lime was picked",
                    "example": "2013-10-19 22:10:29Z",
                    "format": "date-time",
                    "readOnly": true,
                    "type": [
                        "string"
                    ]
                }
            },
            "description": "Like lemons, but not as good",
            "id": "schema/lime",
            "links": [
                {
                    "description": "List all Limes",
                    "href": "/lime",
                    "method": "GET",
                    "rel": "instances",
                    "title": "List"
                }
            ],
            "properties": {
                "lime_uuid": {
                    "$ref": "#/definitions/lime/definitions/lime_uuid"
                },
                "picked_on": {
                    "$ref": "#/definitions/lime/definitions/picked_on"
                }
            },
            "title": "Limes < Lemons",
            "type": [
                "object"
            ]
        }
    },
    "description": "A schema for a Fruity API",
    "properties": {
        "lemon": {
            "$ref": "#/definitions/lemon"
        },
        "lime": {
            "$ref": "#/definitions/lime"
        }
    }
}