Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
web-api-development/schemas/article.schema.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (35 sloc)
899 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"id": "/article", | |
"title": "Article", | |
"description": "An article in the blog", | |
"type": "object", | |
"properties": { | |
"title": { | |
"description": "Main title of the blog article", | |
"type": "string" | |
}, | |
"allText": { | |
"description": "Body text of the blog article", | |
"type": "string" | |
}, | |
"summary": { | |
"description": "Optional short text summary of article", | |
"type": "string" | |
}, | |
"imageURL": { | |
"description": "URL for main image to show in article", | |
"type": "uri" | |
}, | |
"published": { | |
"description": "Is the article published or not", | |
"type": "boolean" | |
}, | |
"authorID": { | |
"description": "User ID of the article author", | |
"type": "integer", | |
"minimum": 0 | |
}, | |
}, | |
"required": ["title", "allText", "authorID"] | |
} |