All Downloads are FREE. Search and download functionalities are using the official Maven repository.

draftv7.links Maven / Gradle / Ivy

The newest version!
{
    "$schema": "http://json-schema.org/draft-07/hyper-schema#",
    "$id": "http://json-schema.org/draft-07/links#",
    "title": "Link Description Object",
    "allOf": [
        { "required": [ "rel", "href" ] },
        { "$ref": "#/definitions/noRequiredFields" }
    ],
    "definitions": {
        "noRequiredFields": {
            "type": "object",
            "properties": {
                "anchor": {
                    "type": "string",
                    "format": "uri-template"
                },
                "anchorPointer": {
                    "type": "string",
                    "anyOf": [
                        { "format": "json-pointer" },
                        { "format": "relative-json-pointer" }
                    ]
                },
                "rel": {
                    "type": "string"
                },
                "href": {
                    "type": "string",
                    "format": "uri-template"
                },
                "hrefSchema": {
                    "$ref": "http://json-schema.org/draft-07/hyper-schema#"
                },
                "templatePointers": {
                    "type": "object",
                    "additionalProperties": {
                        "type": "string",
                        "anyOf": [
                            { "format": "json-pointer" },
                            { "format": "relative-json-pointer" }
                        ]
                    }
                },
                "templateRequired": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    },
                    "uniqueItems": true
                },
                "title": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "targetSchema": {
                    "$ref": "http://json-schema.org/draft-07/hyper-schema#"
                },
                "targetMediaType": {
                    "type": "string"
                },
                "targetHints": { },
                "headerSchema": {
                    "$ref": "http://json-schema.org/draft-07/hyper-schema#"
                },
                "submissionMediaType": {
                    "type": "string",
                    "default": "application/json"
                },
                "submissionSchema": {
                    "$ref": "http://json-schema.org/draft-07/hyper-schema#"
                },
                "$comment": {
                    "type": "string"
                }
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy