Skip to content

Releases: spatie/schema-org

1.7.0

08 Jun 09:55
Compare
Choose a tag to compare
  • Regenerated types

1.6.0

22 May 09:22
Compare
Choose a tag to compare
  • Added: Enumeration child types with constants, e.g. Spatie\Schema\DayOfWeek::Monday.

1.5.0

03 May 15:47
Compare
Choose a tag to compare
  • Added: All types are now json serializable and have array access

1.4.2

28 Mar 09:56
Compare
Choose a tag to compare
  • Fixed: Date format in schemas is now ISO8601 (DateTime::ATOM)

1.4.1

11 Dec 10:27
Compare
Choose a tag to compare
  • Fixed: @param hints for numbers (float|int)

1.4.0

26 Sep 08:39
Compare
Choose a tag to compare
  • Added: BaseType::addProperties method to add multiple properties in one go
  • Fixed: @param hints now also have array versions of the accepted data types, like string|string[]

1.3.1

18 Aug 09:26
Compare
Choose a tag to compare
  • Add UTF-8 support to JSON contents

1.3.0

08 May 08:14
Compare
Choose a tag to compare
  • Added: __call catches unknown methods and calls setProperty 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

20 Feb 09:48
Compare
Choose a tag to compare
  • Fixed: New lines are considered and no longer break docs
  • Fixed: HTML line breaks are removed from the docs

1.2.0

07 Feb 09:35
Compare
Choose a tag to compare
  • 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