Releases: spatie/schema-org
Releases · spatie/schema-org
1.7.0
- Regenerated types
1.6.0
- Added:
Enumeration
child types with constants, e.g.Spatie\Schema\DayOfWeek::Monday
.
1.5.0
- Added: All types are now json serializable and have array access
1.4.2
- Fixed: Date format in schemas is now ISO8601 (
DateTime::ATOM
)
1.4.1
- Fixed:
@param
hints for numbers (float|int
)
1.4.0
- Added:
BaseType::addProperties
method to add multiple properties in one go - Fixed:
@param
hints now also have array versions of the accepted data types, likestring|string[]
1.3.1
- Add UTF-8 support to JSON contents
1.3.0
- Added:
__call
catches unknown methods and callssetProperty
under the hood, using the method name as the property name and the first argument as property value - Added (by updating generated types):
CreativeWork::accessMode
,CreativeWork::accessModeSufficient
,CreativeWork::accessibilitySummary
,Event::audience
,FoodEstablishment::hasMenu
- Removed (by updating generated types, note that this isn't breaking because
__call
will catch your method calls):Menu::menuAddOn
1.2.1
- Fixed: New lines are considered and no longer break docs
- Fixed: HTML line breaks are removed from the docs
1.2.0
- Added: Objects that implements
DateTimeInterface
are now formatted to an ISO 8601 compliant string - Fixed: Some properties were missing due to some whitespace parsing issues