-
-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] - OrganizationJsonLD & WebPageJsonLd & BrandJsonLd (#855)
- Loading branch information
1 parent
9567570
commit 06d4c8b
Showing
15 changed files
with
780 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { versionSchemas } from '@cypress/schema-tools'; | ||
|
||
import { aggregateRating100 } from './common'; | ||
|
||
const brand100 = { | ||
version: { | ||
major: 1, | ||
minor: 0, | ||
patch: 0, | ||
}, | ||
schema: { | ||
type: 'object', | ||
title: 'Brand', | ||
description: 'Bramd description with slogan and some characteristics.', | ||
properties: { | ||
'@context': { | ||
type: 'string', | ||
description: 'Schema.org context', | ||
}, | ||
'@type': { | ||
type: 'string', | ||
description: 'JSON-LD type: PostalAddress', | ||
}, | ||
'@id': { | ||
type: 'string', | ||
description: 'URL to main entity of page', | ||
}, | ||
logo: { | ||
type: 'string', | ||
description: "Url of the Organization's logo", | ||
}, | ||
slogan: { | ||
type: 'string', | ||
description: 'Slogan of the brand', | ||
}, | ||
aggregateRating: { | ||
...aggregateRating100.schema, | ||
see: aggregateRating100, | ||
}, | ||
}, | ||
}, | ||
example: { | ||
'@context': 'https://schema.org', | ||
'@type': 'Brand', | ||
'@id': 'https://www.purpule-fox.io/#corporation', | ||
logo: 'https://www.example.com/photos/logo.jpg', | ||
slogan: 'What does the fox say?', | ||
aggregateRating: aggregateRating100.example, | ||
}, | ||
}; | ||
|
||
const brandVersions = versionSchemas(brand100); | ||
export default brandVersions; |
Oops, something went wrong.