Skip to content

Commit

Permalink
feat: Add subjects schema
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSisiucEndava committed Sep 3, 2020
1 parent bda1e36 commit de4871e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions schema/CreativeWork.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ properties:
anyOf:
- type: string
- type: number
subjects:
'@id': schema:subjects
description: Define subjects related to an article.
type: array
items:
anyOf:
- $ref: Subjects
definitions:
dateProperty:
# Schema for data properties
Expand Down
16 changes: 16 additions & 0 deletions schema/Subject.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
title: Subject
'@id': schema:Subject
extends: Thing
role: secondary
status: stable
category: metadata
description: Subjects related to an article.
properties:
name:
'@id': schema:name
description: A name for the subject.
type: string
value:
'@id': schema:value
description: A value for the subject.
type: string

0 comments on commit de4871e

Please sign in to comment.