wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/specs/global/schema-parts.json

Summary

Maintainability
Test Coverage
{
    "Sitelinks": {
        "type": "object",
        "additionalProperties": {
            "$ref": "./schemas.json#/Sitelink"
        }
    },
    "PropertyValuePair": {
        "type": "object",
        "properties": {
            "property": {
                "type": "object",
                "properties": {
                    "id": {
                        "description": "The ID of the Property",
                        "type": "string"
                    },
                    "data_type": {
                        "description": "The data type of the Property",
                        "type": "string",
                        "readOnly": true,
                        "nullable": true
                    }
                }
            },
            "value": {
                "type": "object",
                "properties": {
                    "content": {
                        "description": "The value, if type == \"value\", otherwise omitted"
                    },
                    "type": {
                        "description": "The value type",
                        "type": "string",
                        "enum": [ "value", "somevalue", "novalue" ]
                    }
                }
            }
        }
    }
}