Skip to content

Commit

Permalink
JsonLd Thing definition must be from type Thing. closes #1731
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Dec 18, 2017
1 parent 367d4a7 commit b878730
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
LUYA CHANGELOG
==============
# LUYA CORE CHANGELOG

All notable changes to this project will be documented in this file. This project make usage of the [Yii Versioning Strategy](https://github.com/yiisoft/yii2/blob/master/docs/internals/versions.md). In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md).

## 1.0.1 (in progress)

### Fixed

- [#1731](https://github.com/luyadev/luya/issues/1731) JsonLd Thing definition must be from type Thing.

1.0.0 (12. December 2017)
-------------------

Expand Down
3 changes: 3 additions & 0 deletions core/web/jsonld/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*/
class Event extends BaseThing implements EventInterface
{
/**
* @inheritdoc
*/
public function typeDefintion()
{
return 'Event';
Expand Down
3 changes: 3 additions & 0 deletions core/web/jsonld/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*/
class Organization extends BaseThing implements OrganizationInterface
{
/**
* @inheritdoc
*/
public function typeDefintion()
{
return 'Organization';
Expand Down
3 changes: 3 additions & 0 deletions core/web/jsonld/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*/
class Person extends BaseThing implements PersonInterface
{
/**
* @inheritdoc
*/
public function typeDefintion()
{
return 'Person';
Expand Down
3 changes: 3 additions & 0 deletions core/web/jsonld/Place.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*/
class Place extends BaseThing implements PlaceInterface
{
/**
* @inheritdoc
*/
public function typeDefintion()
{
return 'Place';
Expand Down
7 changes: 7 additions & 0 deletions core/web/jsonld/Thing.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@
*/
class Thing extends BaseThing
{
/**
* @inheritdoc
*/
public function typeDefintion()
{
return 'Thing';
}
}
1 change: 1 addition & 0 deletions tests/core/web/JsonLdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function testThing()

$this->assertSame([
'name' => 'The Thing',
'@type' => 'Thing',
], $thing->toArray());
}

Expand Down

0 comments on commit b878730

Please sign in to comment.