-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PPA-789: ANS schema deploy https://arcpublishing.atlassian.net/browse/PPA-789
- Loading branch information
Showing
327 changed files
with
16,111 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'use strict'; | ||
|
||
var _ = require('lodash'); | ||
var current_version = require('../version'); | ||
var transform_utils = require('../transform_utils'); | ||
|
||
var version_incrementer = transform_utils.version_incrementer; | ||
var top_level_types = transform_utils.top_level_types; | ||
var accumulatorFor = transform_utils.accumulatorFor; | ||
|
||
var upvert = function(input) { | ||
var output = version_incrementer("0.10.11")(input); | ||
|
||
// TODO: Add upvert logic here | ||
// If change is non-breaking, you can leave this as-is. | ||
|
||
return output; | ||
}; | ||
|
||
module.exports = upvert; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"id": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/audio.json", | ||
"description": "Audio Content", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"enum": [ "audio" ] | ||
}, | ||
|
||
"_id": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_id.json" | ||
}, | ||
"version": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_version.json" | ||
}, | ||
"subtype": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_subtype.json" | ||
}, | ||
"channels": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_channel.json" | ||
}, | ||
"alignment": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_alignment.json" | ||
}, | ||
|
||
"language": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_locale.json" | ||
}, | ||
"copyright": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_copyright.json" | ||
}, | ||
"canonical_url": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_canonical_url.json" | ||
}, | ||
"short_url": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_short_url.json" | ||
}, | ||
"created_date": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_created_date.json" | ||
}, | ||
"last_updated_date": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_last_updated_date.json" | ||
}, | ||
"publish_date": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_publish_date.json" | ||
}, | ||
"first_publish_date": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_first_publish_date.json" | ||
}, | ||
"display_date": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_display_date.json" | ||
}, | ||
"location": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_location.json" | ||
}, | ||
"geo": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_geo.json" | ||
}, | ||
"address": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_address.json" | ||
}, | ||
"editor_note": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_editor_note.json" | ||
}, | ||
"status": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_status.json" | ||
}, | ||
"headlines": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_headlines.json" | ||
}, | ||
"subheadlines": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_subheadlines.json" | ||
}, | ||
"description": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_description.json" | ||
}, | ||
"credits": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_credits.json" | ||
}, | ||
"vanity_credits": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_vanity_credits.json" | ||
}, | ||
"taxonomy": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_taxonomy.json" | ||
}, | ||
"promo_items": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_promo_items.json" | ||
}, | ||
"related_content": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_related_content.json" | ||
}, | ||
"owner": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_owner.json" | ||
}, | ||
"planning": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_planning.json" | ||
}, | ||
"workflow": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_workflow.json" | ||
}, | ||
"pitches": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_pitches.json" | ||
}, | ||
"revision": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_revision.json" | ||
}, | ||
"syndication": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_syndication.json" | ||
}, | ||
"source": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_source.json" | ||
}, | ||
"distributor": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_distributor.json" | ||
}, | ||
"tracking": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_tracking.json" | ||
}, | ||
"comments": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_comments.json" | ||
}, | ||
"label": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_label.json" | ||
}, | ||
"slug": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_slug.json" | ||
}, | ||
"content_restrictions": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_content_restrictions.json" | ||
}, | ||
|
||
"additional_properties": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_additional_properties.json" | ||
}, | ||
|
||
"content_aliases": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_content_aliases.json" | ||
}, | ||
|
||
|
||
"source_url": { | ||
"description": "(Deprecated.) The audio source file. Use 'streams' instead.", | ||
"type": "string" | ||
}, | ||
"mimetype": { | ||
"description": "(Deprecated.) Mime type of audio source file. Use 'streams' instead.", | ||
"type": "string" | ||
}, | ||
"autoplay": { | ||
"description": "Whether to autoplay is enabled.", | ||
"type": "boolean" | ||
}, | ||
"controls": { | ||
"description": "Whether controls are enabled.", | ||
"type": "boolean" | ||
}, | ||
"loop": { | ||
"description": "Whether looping is enabled.", | ||
"type": "boolean" | ||
}, | ||
"preload": { | ||
"description": "Whether preload is enabled.", | ||
"type": "boolean" | ||
}, | ||
|
||
"streams": { | ||
"description": "The different streams this audio can play in.", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/utils/audio_stream.json" | ||
} | ||
} | ||
}, | ||
"required": [ "type", "version" ], | ||
"oneOf": [{ | ||
"required": [ "streams" ] | ||
}, { | ||
"required": [ "source_url" ] | ||
}] | ||
} |
50 changes: 50 additions & 0 deletions
50
src/main/resources/schema/ans/0.10.11/author_operation.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"id": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/author_operation.json", | ||
"description": "An operation on a author", | ||
"type": "object", | ||
"allOf": [{ | ||
"properties": { | ||
"type": { | ||
"description": "Identifies this as an ANS operation", | ||
"type": "string", | ||
"enum": [ "author-service" ] | ||
}, | ||
"operation": { | ||
"type": "string", | ||
"description": "The identifier of the operation being performed", | ||
"enum": [ "insert", "update", "delete" ] | ||
}, | ||
"date": { | ||
"description": "When the operation should be considered performed", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"id": { | ||
"type": "string", | ||
"description": "The id of the item being operated" | ||
}, | ||
"organization_id": { | ||
"type": "string", | ||
"description": "The id of the organization" | ||
}, | ||
"version": { | ||
"type": "string", | ||
"description": "The version of ANS this item is written in" | ||
}, | ||
|
||
"priority": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_priority.json" | ||
}, | ||
"app_name": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_app_name.json" | ||
}, | ||
|
||
"body": { | ||
"description": "The object being inserted/updated/deleted", | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/utils/author.json" | ||
} | ||
}, | ||
"required": [ "type", "operation", "id", "organization_id" ] | ||
}] | ||
} |
82 changes: 82 additions & 0 deletions
82
src/main/resources/schema/ans/0.10.11/clavis_operation.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"id": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/clavis_operation.json", | ||
"description": "An operation to add Clavis information to a story.", | ||
"type": "object", | ||
"allOf": [{ | ||
"properties": { | ||
"type": { | ||
"description": "Identifies this as an ANS operation", | ||
"type": "string", | ||
"enum": [ "clavis-operation" ] | ||
}, | ||
"operation": { | ||
"type": "string", | ||
"description": "The identifier of the operation being performed", | ||
"enum": [ "update" ] | ||
}, | ||
"date": { | ||
"description": "When the operation should be considered performed", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"id": { | ||
"type": "string", | ||
"description": "The id of the item being operated" | ||
}, | ||
"organization_id": { | ||
"type": "string", | ||
"description": "The id of the organization" | ||
}, | ||
"branch": { | ||
"type": "string", | ||
"description": "The name of the branch within Story API that this operation occurs on, if any" | ||
}, | ||
"published": { | ||
"type": "boolean", | ||
"description": "Identifies this item as published or not" | ||
}, | ||
"version": { | ||
"type": "string", | ||
"description": "The version of ANS this item is written in" | ||
}, | ||
|
||
"priority": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_priority.json" | ||
}, | ||
"app_name": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/traits/trait_app_name.json" | ||
}, | ||
|
||
"keywords": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/utils/keyword.json" | ||
}, | ||
"description": "A list of keywords." | ||
}, | ||
"named_entities": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/utils/named_entity.json" | ||
}, | ||
"description": "A list of named entities." | ||
}, | ||
"topics": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/utils/topic.json" | ||
}, | ||
"description": "A list of topics." | ||
}, | ||
"auxiliaries": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://raw.githubusercontent.com/washingtonpost/ans-schema/master/src/main/resources/schema/ans/0.10.11/utils/auxiliary.json" | ||
}, | ||
"description": "A list of auxiliaries." | ||
} | ||
}, | ||
"required": [ "type", "operation", "id", "organization_id", "branch", "published" ] | ||
}] | ||
} |
Oops, something went wrong.