VisualDataSchema:Organization: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
"wiki": { | "wiki": { | ||
"type": "schema", | "type": "schema", | ||
"name": " | "name": "Organization" | ||
}, | }, | ||
"properties": { | "properties": { | ||
" | "name": { | ||
"wiki": { | "wiki": { | ||
"name": "name", | |||
"type": "property", | "type": "property", | ||
" | "multiple-items": false, | ||
"required": true, | |||
"label-parsed": "Name", | |||
"visibility": "visible", | "visibility": "visible", | ||
"preferred-input": "OO.ui.TextInputWidget", | "preferred-input": "OO.ui.TextInputWidget", | ||
"input-config": [] | "input-config": [] | ||
}, | }, | ||
"type": "string", | "type": "string", | ||
Line 19: | Line 20: | ||
"title": "Name" | "title": "Name" | ||
}, | }, | ||
" | "logo": { | ||
"wiki": { | "wiki": { | ||
"name": "logo", | |||
"type": "property", | "type": "property", | ||
" | "multiple-items": false, | ||
"input-config": { | |||
"accept": [ | |||
"image/svg+xml", | |||
"image/png", | |||
"image/gif", | |||
"image/jpeg", | |||
"image/pjpeg", | |||
"image/jpeg", | |||
"image/pjpeg", | |||
"image/webp", | |||
"application/pdf", | |||
"image/tiff", | |||
"image/x-tiff", | |||
"image/bmp", | |||
"image/x-windows-bmp" | |||
] | |||
}, | |||
"label-parsed": "Logo", | |||
"value-prefix": "File:", | |||
"visibility": "visible", | "visibility": "visible", | ||
"preferred-input": "OO.ui.SelectFileWidget", | "preferred-input": "OO.ui.SelectFileWidget", | ||
"required": false | |||
"required": | |||
}, | }, | ||
"type": "string", | "type": "string", | ||
Line 33: | Line 52: | ||
"title": "Logo" | "title": "Logo" | ||
}, | }, | ||
" | "country": { | ||
"wiki": { | "wiki": { | ||
"name": "country", | |||
"type": "property", | "type": "property", | ||
" | "multiple-items": false, | ||
"required": true, | |||
"label-parsed": "Country", | |||
"visibility": "visible", | "visibility": "visible", | ||
"preferred-input": "OO.ui.TextInputWidget", | "preferred-input": "OO.ui.TextInputWidget", | ||
"input-config": [] | "input-config": [] | ||
}, | }, | ||
"type": "string", | "type": "string", | ||
Line 47: | Line 67: | ||
"title": "Country" | "title": "Country" | ||
}, | }, | ||
" | "city": { | ||
"wiki": { | "wiki": { | ||
"name": "city", | |||
"type": "property", | "type": "property", | ||
" | "multiple-items": false, | ||
"required": true, | |||
"label-parsed": "City", | |||
"visibility": "visible", | "visibility": "visible", | ||
"preferred-input": "OO.ui.TextInputWidget", | "preferred-input": "OO.ui.TextInputWidget", | ||
"input-config": [] | "input-config": [] | ||
}, | }, | ||
"type": "string", | "type": "string", | ||
Line 61: | Line 82: | ||
"title": "City" | "title": "City" | ||
}, | }, | ||
" | "address": { | ||
"wiki": { | "wiki": { | ||
"name": "address", | |||
"type": "property", | "type": "property", | ||
" | "multiple-items": false, | ||
"required": true, | |||
"label-parsed": "Address", | |||
"visibility": "visible", | "visibility": "visible", | ||
"preferred-input": "OO.ui.TextInputWidget", | "preferred-input": "OO.ui.TextInputWidget", | ||
"input-config": [] | "input-config": [] | ||
}, | }, | ||
"type": "string", | "type": "string", | ||
Line 75: | Line 97: | ||
"title": "Address" | "title": "Address" | ||
}, | }, | ||
" | "geolocation": { | ||
"wiki": { | |||
"type": "geolocation", | |||
"name": "geolocation", | |||
"label": "geolocation", | |||
"help-message": "Please zoom and drag the marker to your headquarters location", | |||
"coordinates": true, | |||
"map": true, | |||
"reverse-geocoding": true, | |||
"maptiler-map-config": [], | |||
"maptiler-geocoding-config": [], | |||
"latitude-input-label": "latitude", | |||
"latitude-input-help": "", | |||
"longitude-input-label": "longitude", | |||
"longitude-input-help": "" | |||
}, | |||
"$id": "https://example.com/geographical-location.schema.json", | |||
"$schema": "https://json-schema.org/draft/2020-12/schema", | |||
"title": "geolocation", | |||
"description": "Please zoom and drag the marker to your headquarters location", | |||
"required": [ | |||
"latitude", | |||
"longitude" | |||
], | |||
"type": "object", | |||
"properties": { | |||
"latitude": { | |||
"title": "latitude", | |||
"description": "", | |||
"type": "number", | |||
"minimum": -90, | |||
"maximum": 90 | |||
}, | |||
"longitude": { | |||
"title": "longitude", | |||
"description": "", | |||
"type": "number", | |||
"minimum": -180, | |||
"maximum": 180 | |||
}, | |||
"zoom": { | |||
"type": "number", | |||
"minimum": 0, | |||
"maximum": 24, | |||
"wiki": { | |||
"visibility": "hidden" | |||
} | |||
} | |||
} | |||
}, | |||
"email": { | |||
"wiki": { | "wiki": { | ||
"name": "email", | |||
"type": "property", | "type": "property", | ||
" | "multiple-items": false, | ||
"required": true, | |||
"label-parsed": "Email", | |||
"visibility": "visible", | "visibility": "visible", | ||
"preferred-input": "OO.ui.TextInputWidget (email)", | "preferred-input": "OO.ui.TextInputWidget (email)", | ||
"input-config": [] | "input-config": [] | ||
}, | }, | ||
"type": "string", | "type": "string", | ||
"format": "email", | "format": "email", | ||
"title": " | "title": "Email" | ||
}, | }, | ||
" | "website": { | ||
"wiki": { | "wiki": { | ||
"name": "website", | |||
"type": "property", | "type": "property", | ||
" | "multiple-items": false, | ||
"label-parsed": "Official website", | |||
"visibility": "visible", | "visibility": "visible", | ||
"preferred-input": "OO.ui.TextInputWidget (url)", | "preferred-input": "OO.ui.TextInputWidget (url)", | ||
"input-config": [], | "input-config": [], | ||
Line 100: | Line 174: | ||
}, | }, | ||
"type": "string", | "type": "string", | ||
"format": "url" | "format": "url", | ||
"title": "Official website" | |||
}, | |||
"foundation_year": { | |||
"wiki": { | |||
"name": "foundation_year", | |||
"type": "property", | |||
"multiple-items": false, | |||
"label-parsed": "Foundation year", | |||
"visibility": "visible", | |||
"preferred-input": "OO.ui.NumberInputWidget", | |||
"input-config": [], | |||
"required": false | |||
}, | |||
"type": "integer", | |||
"format": "date", | |||
"title": "Foundation year" | |||
} | } | ||
}, | }, | ||
"required": [ | "required": [ | ||
" | "name", | ||
" | "country", | ||
" | "city", | ||
" | "address", | ||
" | "email" | ||
], | ], | ||
"type": "object" | "type": "object" | ||
} | } |
Revision as of 15:15, 5 March 2024
wiki |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | "object" |