Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ deleteCompositionAction:

batchCompositionAction:
oneOf:
- $ref: './listCompositionsResponse.yml#/composition'
- $ref: './Composition.yml#/composition'
- $ref: '#/deleteCompositionAction'
20 changes: 20 additions & 0 deletions specs/composition-full/common/schemas/Composition.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
composition:
type: object
additionalProperties: false
properties:
objectID:
$ref: '../../../common/parameters.yml#/objectID'
name:
type: string
description: Composition name.
example: 'my lovely crafted composition'
description:
type: string
description: Composition description.
example: 'my lovely crafted composition that is used for X purpose'
behavior:
$ref: './CompositionBehavior.yml#/compositionBehavior'
required:
- objectID
- behavior
- name
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ compositionRule:
additionalProperties: false
properties:
behavior:
$ref: './compositionBehavior.yml#/compositionBehavior'
$ref: './CompositionBehavior.yml#/compositionBehavior'
required:
- behavior
description:
Expand Down Expand Up @@ -54,10 +54,6 @@ condition:
example: '{facet:genre}'
anchoring:
$ref: '#/anchoring'
alternatives:
type: boolean
description: Whether the pattern should match plurals, synonyms, and typos.
default: false
context:
$ref: '../../../common/schemas/Rule.yml#/context'
filters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ listCompositionsResponse:
type: array
description: All compositions in your Algolia application.
items:
$ref: '#/composition'
$ref: './Composition.yml#/composition'
nbPages:
type: integer
description: Number of pages.
Expand All @@ -29,24 +29,3 @@ listCompositionsResponse:
- nbHits
- nbPages
- page

composition:
type: object
additionalProperties: false
properties:
objectID:
$ref: '../../../common/parameters.yml#/objectID'
name:
type: string
description: Composition name.
example: 'my lovely crafted composition'
description:
type: string
description: Composition description.
example: 'my lovely crafted composition that is used for X purpose'
behavior:
$ref: './compositionBehavior.yml#/compositionBehavior'
required:
- objectID
- behavior
- name
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ deleteCompositionRuleAction:

rulesBatchCompositionAction:
oneOf:
- $ref: './compositionRule.yml#/compositionRule'
- $ref: './CompositionRule.yml#/compositionRule'
- $ref: '#/deleteCompositionRuleAction'
4 changes: 2 additions & 2 deletions specs/composition-full/common/schemas/SearchParams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ mainInjectionQueryParameters:
type: array
items:
type: string
example: [author, title, conten, content]
example: [author, title, content]
description: |
Attributes to highlight.

Expand Down Expand Up @@ -705,7 +705,7 @@ injectedItemsQueryParameters:
type: array
items:
type: string
example: [author, title, conten, content]
example: [author, title, content]
description: |
Attributes to highlight.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ get:
content:
application/json:
schema:
$ref: '../../common/schemas/listCompositionsResponse.yml#/listCompositionsResponse'
$ref: '../../common/schemas/ListCompositionsResponse.yml#/listCompositionsResponse'
'400':
$ref: '../../../common/responses/BadRequest.yml'
'402':
Expand Down
2 changes: 1 addition & 1 deletion specs/composition-full/paths/objects/multipleBatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ post:
action:
$ref: '../../common/schemas/Batch.yml#/action'
body:
$ref: '../../common/schemas/batchCompositionAction.yml#/batchCompositionAction'
$ref: '../../common/schemas/BatchCompositionAction.yml#/batchCompositionAction'
required:
- action
- body
Expand Down
2 changes: 1 addition & 1 deletion specs/composition-full/paths/objects/objects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ get:
content:
application/json:
schema:
$ref: '../../common/schemas/listCompositionsResponse.yml#/composition'
$ref: '../../common/schemas/Composition.yml#/composition'
'400':
$ref: '../../../common/responses/BadRequest.yml'
'402':
Expand Down
2 changes: 1 addition & 1 deletion specs/composition-full/paths/rules/rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ get:
content:
application/json:
schema:
$ref: '../../common/schemas/compositionRule.yml#/compositionRule'
$ref: '../../common/schemas/CompositionRule.yml#/compositionRule'
'400':
$ref: '../../../common/responses/BadRequest.yml'
'402':
Expand Down
2 changes: 1 addition & 1 deletion specs/composition-full/paths/rules/saveRules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ post:
action:
$ref: '../../common/schemas/Batch.yml#/action'
body:
$ref: '../../common/schemas/rulesBatchCompositionAction.yml#/rulesBatchCompositionAction'
$ref: '../../common/schemas/RulesBatchCompositionAction.yml#/rulesBatchCompositionAction'
required:
- action
- body
Expand Down
4 changes: 2 additions & 2 deletions specs/composition-full/paths/rules/searchRules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ post:
query:
$ref: './parameters.yml#/query'
anchoring:
$ref: '../../common/schemas/compositionRule.yml#/anchoring'
$ref: '../../common/schemas/CompositionRule.yml#/anchoring'
context:
type: string
description: Only return composition rules that match the context (exact match).
Expand Down Expand Up @@ -57,7 +57,7 @@ post:
type: array
description: Composition rules that matched the search criteria.
items:
$ref: '../../common/schemas/compositionRule.yml#/compositionRule'
$ref: '../../common/schemas/CompositionRule.yml#/compositionRule'
nbHits:
type: integer
description: Number of composition rules that matched the search criteria.
Expand Down
Loading