-
-
Notifications
You must be signed in to change notification settings - Fork 387
/
organization-schema.js
83 lines (81 loc) · 2.17 KB
/
organization-schema.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import { versionSchemas } from '@cypress/schema-tools';
import address100 from './address';
import contactPoint100 from './contactPoint';
const organization110 = {
version: {
major: 1,
minor: 1,
patch: 0,
},
schema: {
type: 'object',
title: 'Organization',
description: 'An example schema describing JSON-LD for type: Organization',
properties: {
'@context': {
type: 'string',
description: 'Schema.org context',
},
'@type': {
type: 'string',
description: 'Organization and the subtypes',
},
'@id': {
type: 'string',
description: 'URL to main entity of page',
},
logo: {
type: 'string',
description: "Url of the Organization's logo",
},
legalName: {
type: 'string',
description: 'Legal name of the organization, e.g Purple Fox SA or LLC',
},
name: {
type: 'string',
description: 'Name of the organization, e.g Purple Fox',
},
address: {
...address100.schema,
see: address100,
},
sameAs: {
type: 'array',
items: {
type: 'string',
},
description:
"Array of Organization's URL's, usually social urls like instagram, facebook etc.",
},
contactPoint: {
type: 'array',
items: {
...contactPoint100.schema,
see: contactPoint100,
},
description: 'Array with contact points objects.',
},
url: {
type: 'string',
description: 'URL to main entity of page',
},
},
required: ['name', 'url'],
additionalProperties: false,
},
example: {
'@context': 'https://schema.org',
'@type': 'Corporation',
'@id': 'https://www.purpule-fox.io/#corporation',
logo: 'https://www.example.com/photos/logo.jpg',
legalName: 'Purple Fox LLC',
name: 'Purple Fox',
address: [address100.example],
contactPoint: [contactPoint100.example],
sameAs: ['https://www.orange-fox.com'],
url: 'https://www.purpule-fox.io/',
},
};
const organizationVersions = versionSchemas(organization110);
export default organizationVersions;