diff --git a/docs/writing-schema-definitions.md b/docs/writing-schema-definitions.md index 0405e922..6d888608 100644 --- a/docs/writing-schema-definitions.md +++ b/docs/writing-schema-definitions.md @@ -43,12 +43,12 @@ Just as for types, properties of types can be linked to the other contexts using type: string ``` -## The `$extends` keyword +## The `extends` keyword -This is a custom keyword which allows your type schema to inherit the `properties` and `required` keywords of a parent type schema. It should be a _relative_ file path e.g. +This is a custom keyword which allows your type schema to inherit the `properties` and `required` keywords of a parent type schema. It should be the name of another type e.g. ```yaml -$extends: ../Thing.schema.yaml +extends: Thing ``` ## The `role` keyword diff --git a/schema/Entity.schema.yaml b/schema/Entity.schema.yaml index 1309608d..3eac4a4a 100644 --- a/schema/Entity.schema.yaml +++ b/schema/Entity.schema.yaml @@ -3,7 +3,6 @@ title: Entity role: base status: unstable description: The most basic item, defining the minimum properties required. -type: object properties: type: # This is a special property analagous to JSON-LD's `@type` keyword diff --git a/schema/Thing.schema.yaml b/schema/Thing.schema.yaml index e553ec55..46e66c06 100644 --- a/schema/Thing.schema.yaml +++ b/schema/Thing.schema.yaml @@ -1,9 +1,8 @@ title: Thing '@id': schema:Thing -$extends: Entity.schema.yaml +extends: Entity status: unstable description: The most generic type of item https://schema.org/Thing. -type: object properties: alternateNames: '@id': schema:alternateName