Skip to content

Commit fb6845c

Browse files
committed
feat: update schema definition to version 29.0
1 parent ce1c819 commit fb6845c

File tree

143 files changed

+480
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+480
-67
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
### Updated
11+
- schema.org definition to version 29.0
12+
1013
### Fixed
1114
- Missing pending properties for some types (#133)
1215

Classes/Model/AdditionalProperties/AggregateOffer.php

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function getAdditionalProperties(): array
3333
{
3434
return [
3535
'ineligibleRegion',
36+
'validForMemberTier',
3637
];
3738
}
3839
}

Classes/Model/AdditionalProperties/AudioObject.php

+2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'height',
3536
'provider',
37+
'width',
3638
];
3739
}
3840
}

Classes/Model/AdditionalProperties/Barcode.php

+2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'height',
3536
'provider',
37+
'width',
3638
];
3739
}
3840
}

Classes/Model/AdditionalProperties/Car.php

+4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'depth',
3536
'hasEnergyConsumptionDetails',
37+
'height',
38+
'weight',
39+
'width',
3640
];
3741
}
3842
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the "schema" extension for TYPO3 CMS.
7+
*
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
*/
11+
12+
namespace Brotkrueml\Schema\Model\AdditionalProperties;
13+
14+
use Brotkrueml\Schema\Core\AdditionalPropertiesInterface;
15+
16+
/**
17+
* The defined additional properties have been available as official
18+
* but were moved because of reasons to pending.
19+
* These properties are registered again to avoid
20+
* breaking changes.
21+
*
22+
* @internal
23+
* @todo Remove with schema 4.0.0
24+
*/
25+
final class CompoundPriceSpecification implements AdditionalPropertiesInterface
26+
{
27+
public function getType(): string
28+
{
29+
return 'CompoundPriceSpecification';
30+
}
31+
32+
public function getAdditionalProperties(): array
33+
{
34+
return [
35+
'validForMemberTier',
36+
];
37+
}
38+
}

Classes/Model/AdditionalProperties/DataDownload.php

+2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'height',
3536
'provider',
37+
'width',
3638
];
3739
}
3840
}

Classes/Model/AdditionalProperties/DeliveryChargeSpecification.php

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function getAdditionalProperties(): array
3333
{
3434
return [
3535
'ineligibleRegion',
36+
'validForMemberTier',
3637
];
3738
}
3839
}

Classes/Model/AdditionalProperties/ImageObject.php

+2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'height',
3536
'provider',
37+
'width',
3638
];
3739
}
3840
}

Classes/Model/AdditionalProperties/IndividualProduct.php

+4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'depth',
3536
'hasEnergyConsumptionDetails',
37+
'height',
38+
'weight',
39+
'width',
3640
];
3741
}
3842
}

Classes/Model/AdditionalProperties/MediaObject.php

+2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'height',
3536
'provider',
37+
'width',
3638
];
3739
}
3840
}

Classes/Model/AdditionalProperties/MusicVideoObject.php

+2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'height',
3536
'provider',
37+
'width',
3638
];
3739
}
3840
}

Classes/Model/AdditionalProperties/Offer.php

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function getAdditionalProperties(): array
3333
{
3434
return [
3535
'ineligibleRegion',
36+
'validForMemberTier',
3637
];
3738
}
3839
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the "schema" extension for TYPO3 CMS.
7+
*
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
*/
11+
12+
namespace Brotkrueml\Schema\Model\AdditionalProperties;
13+
14+
use Brotkrueml\Schema\Core\AdditionalPropertiesInterface;
15+
16+
/**
17+
* The defined additional properties have been available as official
18+
* but were moved because of reasons to pending.
19+
* These properties are registered again to avoid
20+
* breaking changes.
21+
*
22+
* @internal
23+
* @todo Remove with schema 4.0.0
24+
*/
25+
final class OfferShippingDetails implements AdditionalPropertiesInterface
26+
{
27+
public function getType(): string
28+
{
29+
return 'OfferShippingDetails';
30+
}
31+
32+
public function getAdditionalProperties(): array
33+
{
34+
return [
35+
'depth',
36+
'height',
37+
'shippingLabel',
38+
'shippingSettingsLink',
39+
'transitTimeLabel',
40+
'validForMemberTier',
41+
'weight',
42+
'width',
43+
];
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the "schema" extension for TYPO3 CMS.
7+
*
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
*/
11+
12+
namespace Brotkrueml\Schema\Model\AdditionalProperties;
13+
14+
use Brotkrueml\Schema\Core\AdditionalPropertiesInterface;
15+
16+
/**
17+
* The defined additional properties have been available as official
18+
* but were moved because of reasons to pending.
19+
* These properties are registered again to avoid
20+
* breaking changes.
21+
*
22+
* @internal
23+
* @todo Remove with schema 4.0.0
24+
*/
25+
final class PaymentChargeSpecification implements AdditionalPropertiesInterface
26+
{
27+
public function getType(): string
28+
{
29+
return 'PaymentChargeSpecification';
30+
}
31+
32+
public function getAdditionalProperties(): array
33+
{
34+
return [
35+
'validForMemberTier',
36+
];
37+
}
38+
}

Classes/Model/AdditionalProperties/Person.php

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'height',
36+
'width',
3537
// @see https://github.com/schemaorg/schemaorg/issues/2499
3638
'gender',
3739
// from official to pending in schema version 3.7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the "schema" extension for TYPO3 CMS.
7+
*
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
*/
11+
12+
namespace Brotkrueml\Schema\Model\AdditionalProperties;
13+
14+
use Brotkrueml\Schema\Core\AdditionalPropertiesInterface;
15+
16+
/**
17+
* The defined additional properties have been available as official
18+
* but were moved because of reasons to pending.
19+
* These properties are registered again to avoid
20+
* breaking changes.
21+
*
22+
* @internal
23+
* @todo Remove with schema 4.0.0
24+
*/
25+
final class PriceSpecification implements AdditionalPropertiesInterface
26+
{
27+
public function getType(): string
28+
{
29+
return 'PriceSpecification';
30+
}
31+
32+
public function getAdditionalProperties(): array
33+
{
34+
return [
35+
'validForMemberTier',
36+
];
37+
}
38+
}

Classes/Model/AdditionalProperties/Product.php

+4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'depth',
3536
'hasEnergyConsumptionDetails',
37+
'height',
38+
'weight',
39+
'width',
3640
];
3741
}
3842
}

Classes/Model/AdditionalProperties/ProductModel.php

+4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ public function getType(): string
3232
public function getAdditionalProperties(): array
3333
{
3434
return [
35+
'depth',
3536
'hasEnergyConsumptionDetails',
37+
'height',
38+
'weight',
39+
'width',
3640
];
3741
}
3842
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the "schema" extension for TYPO3 CMS.
7+
*
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
*/
11+
12+
namespace Brotkrueml\Schema\Model\AdditionalProperties;
13+
14+
use Brotkrueml\Schema\Core\AdditionalPropertiesInterface;
15+
16+
/**
17+
* The defined additional properties have been available as official
18+
* but were moved because of reasons to pending.
19+
* These properties are registered again to avoid
20+
* breaking changes.
21+
*
22+
* @internal
23+
* @todo Remove with schema 4.0.0
24+
*/
25+
final class ShippingDeliveryTime implements AdditionalPropertiesInterface
26+
{
27+
public function getType(): string
28+
{
29+
return 'ShippingDeliveryTime';
30+
}
31+
32+
public function getAdditionalProperties(): array
33+
{
34+
return [
35+
'handlingTime',
36+
];
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the "schema" extension for TYPO3 CMS.
7+
*
8+
* For the full copyright and license information, please read the
9+
* LICENSE.txt file that was distributed with this source code.
10+
*/
11+
12+
namespace Brotkrueml\Schema\Model\AdditionalProperties;
13+
14+
use Brotkrueml\Schema\Core\AdditionalPropertiesInterface;
15+
16+
/**
17+
* The defined additional properties have been available as official
18+
* but were moved because of reasons to pending.
19+
* These properties are registered again to avoid
20+
* breaking changes.
21+
*
22+
* @internal
23+
* @todo Remove with schema 4.0.0
24+
*/
25+
final class ShippingRateSettings implements AdditionalPropertiesInterface
26+
{
27+
public function getType(): string
28+
{
29+
return 'ShippingRateSettings';
30+
}
31+
32+
public function getAdditionalProperties(): array
33+
{
34+
return [
35+
'shippingLabel',
36+
];
37+
}
38+
}

0 commit comments

Comments
 (0)