-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
219 additions
and
99 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,136 @@ | ||
schemas: | ||
BaseObject: | ||
type: object | ||
required: | ||
- _media-type | ||
properties: | ||
_media-type: | ||
xml: | ||
attribute: true | ||
name: media-type | ||
type: string | ||
_href: | ||
xml: | ||
attribute: true | ||
name: href | ||
type: string | ||
Ref: | ||
type: | ||
$ref: "#/components/schemas/BaseObject" | ||
UnixTimestamp: | ||
type: integer | ||
Href: | ||
type: object | ||
required: | ||
- _href | ||
properties: | ||
_href: | ||
xml: | ||
attribute: true | ||
name: href | ||
type: string | ||
Target: | ||
description: Struct that stores extra target information for a SortClause object. | ||
type: object | ||
SortClause: | ||
description: This class is the base for SortClause classes, used to set sorting of content queries. | ||
type: object | ||
required: | ||
- direction | ||
- target | ||
- targetData | ||
properties: | ||
direction: | ||
description: Sort direction. One of Query::SORT_ASC or Query::SORT_DESC. | ||
type: string | ||
target: | ||
description: "Sort target, high level: section_identifier, attribute_value, etc." | ||
type: string | ||
targetData: | ||
description: Extra target data, required by some sort clauses, field for instance. | ||
type: | ||
$ref: "#/components/schemas/Target" | ||
ErrorMessage: | ||
description: Represents an error response. Might contain additional properties depending on an error type. | ||
type: object | ||
required: | ||
- errorCode | ||
- errorMessage | ||
- errorDescription | ||
properties: | ||
errorCode: | ||
type: integer | ||
errorMessage: | ||
type: string | ||
errorDescription: | ||
type: string | ||
Value: | ||
description: Struct that stores extra value information for a Criterion object. | ||
type: object | ||
required: | ||
- _languageCode | ||
- "#text" | ||
properties: | ||
_languageCode: | ||
description: Language code. | ||
type: string | ||
"#text": | ||
description: Content type description. | ||
type: [string, 'null'] | ||
ValueObject: | ||
type: object | ||
required: | ||
- value | ||
properties: | ||
value: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/Value" | ||
ValueArray: | ||
type: object | ||
required: | ||
- value | ||
properties: | ||
value: | ||
type: array | ||
items: | ||
$ref: "#/components/schemas/Value" | ||
MultilingualValue: | ||
allOf: | ||
- $ref: "#/components/schemas/Value" | ||
- description: Object that represents a multilingual (translated) value. | ||
type: object | ||
required: | ||
- _languageCode | ||
- "#text" | ||
properties: | ||
_languageCode: | ||
description: Language code. | ||
type: string | ||
"#text": | ||
description: Translation contents. | ||
type: [string, 'null'] | ||
KeyValue: | ||
description: Key-value structure | ||
type: object | ||
required: | ||
- _key | ||
- "#text" | ||
properties: | ||
_key: | ||
type: string | ||
"#text": | ||
type: [string, 'null'] | ||
DateRange: | ||
allOf: | ||
- $ref: "#/components/schemas/BaseObject" | ||
- description: Representation of date range. | ||
type: object | ||
required: | ||
- startDate | ||
- endDate | ||
properties: | ||
startDate: | ||
type: string | ||
endDate: | ||
type: string |
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
Oops, something went wrong.