JsonSchema:Label: Difference between revisions

From OpenSemanticWorld
(Install package: OSW Core)
 
m (Protected "JsonSchema:Label": Protected as read-only import via Page Exchange extension ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{
{
    "@context": {
"@context": {
        "rdf": "http://www.w3.org/2000/01/rdf-schema#",
"rdf": "http://www.w3.org/2000/01/rdf-schema#",
        "text": {
"text": {
            "@id": "@value"
"@id": "@value"
        },
},
        "lang": {
"lang": {
            "@id": "@language"
"@id": "@language"
        }
}
    },
},
    "title": "Label",
"title": "Label",
    "id": "label",
"id": "label",
    "type": "object",
"type": "object",
    "required": [
"required": [
        "text",
"text",
        "lang"
"lang"
    ],
],
    "properties": {
"properties": {
        "text": {
"text": {
            "title": "Text",
"title": "Text",
            "title*": {
"title*": {
                "de": "Text"
"de": "Text"
            },
},
            "type": "string"
"type": "string",
        },
"minLength": 1,
        "lang": {
"options": {
            "title": "Lang code",
"input_width": "800px",
            "title*": {
"inputAttributes": {
                "de": "Sprache"
"placeholder": "Title of the entry"
            },
},
            "type": "string",
"inputAttributes*": {
            "enum": [
"de": {
                "en",
"placeholder": "Titel dieses Eintrags"
                "de"
}
            ],
}
            "default": "en"
}
        }
},
    }
"lang": {
"title": "Lang code",
"title*": {
"de": "Sprache"
},
"type": "string",
"enum": [
"en",
"de"
],
"default": "en",
"default*": {
"en": "en",
"de": "de"
},
"options": {
"input_width": "100px"
}
}
}
}
}

Latest revision as of 04:57, 8 January 2026

@context
rdf"http://www.w3.org/2000/01/rdf-schema#"
text
@id"@value"
lang
@id"@language"
title"Label"
id"label"
type"object"
required
"text"
"lang"
properties
text
title"Text"
title*
de"Text"
type"string"
minLength1
options
input_width"800px"
inputAttributes
placeholder"Title of the entry"
inputAttributes*
de
placeholder"Titel dieses Eintrags"
lang
title"Lang code"
title*
de"Sprache"
type"string"
enum
"en"
"de"
default"en"
default*
en"en"
de"de"
options
input_width"100px"
Cookies help us deliver our services. By using our services, you agree to our use of cookies.