Skip to content

Commit 3b3d706

Browse files
Haroenvshortcuts
andauthored
fix(specs): correct mistakes (#509)
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 6361b60 commit 3b3d706

File tree

15 files changed

+31
-31
lines changed

15 files changed

+31
-31
lines changed

clients/algoliasearch-client-javascript/packages/client-common/src/transporter/createTransporter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export function createTransporter({
292292
const cacheable = Boolean(requestOptions.cacheable || request.cacheable);
293293

294294
/**
295-
* If is not "cacheable", we immediatly trigger the retryable request, no
295+
* If is not "cacheable", we immediately trigger the retryable request, no
296296
* need to check cache implementations.
297297
*/
298298
if (cacheable !== true) {
@@ -315,7 +315,7 @@ export function createTransporter({
315315

316316
/**
317317
* With the computed key, we first ask the responses cache
318-
* implemention if this request was been resolved before.
318+
* implementation if this request was been resolved before.
319319
*/
320320
return responsesCache.get(
321321
key,

clients/algoliasearch-client-javascript/packages/client-common/src/types/Transporter.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type QueryParameters = Record<string, any>;
77

88
export type RequestOptions = {
99
/**
10-
* Custom timeout for the request. Note that, in normal situacions
10+
* Custom timeout for the request. Note that, in normal situations
1111
* the given timeout will be applied. But the transporter layer may
1212
* increase this timeout if there is need for it.
1313
*/
@@ -64,7 +64,7 @@ export type AlgoliaAgent = {
6464
value: string;
6565

6666
/**
67-
* Mutates the current user agent ading the given user agent options.
67+
* Mutates the current user agent adding the given user agent options.
6868
*/
6969
add: (options: AlgoliaAgentOptions) => AlgoliaAgent;
7070
};
@@ -84,23 +84,23 @@ export type TransporterOptions = {
8484

8585
/**
8686
* The underlying requester used. Should differ
87-
* depending of the enviroment where the client
87+
* depending of the environment where the client
8888
* will be used.
8989
*/
9090
requester: Requester;
9191

9292
/**
9393
* The cache of the requests. When requests are
9494
* `cacheable`, the returned promised persists
95-
* in this cache to shared in similar resquests
95+
* in this cache to shared in similar requests
9696
* before being resolved.
9797
*/
9898
requestsCache: Cache;
9999

100100
/**
101101
* The cache of the responses. When requests are
102102
* `cacheable`, the returned responses persists
103-
* in this cache to shared in similar resquests.
103+
* in this cache to shared in similar requests.
104104
*/
105105
responsesCache: Cache;
106106

@@ -145,23 +145,23 @@ export type Transporter = {
145145

146146
/**
147147
* The underlying requester used. Should differ
148-
* depending of the enviroment where the client
148+
* depending of the environment where the client
149149
* will be used.
150150
*/
151151
requester: Requester;
152152

153153
/**
154154
* The cache of the requests. When requests are
155155
* `cacheable`, the returned promised persists
156-
* in this cache to shared in similar resquests
156+
* in this cache to shared in similar requests
157157
* before being resolved.
158158
*/
159159
requestsCache: Cache;
160160

161161
/**
162162
* The cache of the responses. When requests are
163163
* `cacheable`, the returned responses persists
164-
* in this cache to shared in similar resquests.
164+
* in this cache to shared in similar requests.
165165
*/
166166
responsesCache: Cache;
167167

@@ -194,7 +194,7 @@ export type Transporter = {
194194

195195
/**
196196
* Performs a request.
197-
* The `baseRequest` and `baseRequestOptions` will be merged accordignly.
197+
* The `baseRequest` and `baseRequestOptions` will be merged accordingly.
198198
*/
199199
request: <TResponse>(
200200
baseRequest: Request,

specs/abtesting/common/parameters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ description:
3434

3535
trafficPercentage:
3636
type: integer
37-
description: The traffic perfecentage for the A/B test.
37+
description: The traffic percentage for the A/B test.

specs/common/responses/Success.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ content:
33
application/json:
44
schema:
55
type: object
6-
title: SucessResponse
6+
title: SuccessResponse
77
additionalProperties: false
88
required:
99
- status

specs/query-suggestions/common/schemas/QuerySuggestionsIndex.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ SourceIndicesWithReplicas:
2727
type: array
2828
description: List of source indices used to generate a Query Suggestions index.
2929
items:
30-
$ref: '#/SourceIndiceWithReplicas'
30+
$ref: '#/SourceIndexWithReplicas'
3131

32-
SourceIndiceWithReplicas:
32+
SourceIndexWithReplicas:
3333
type: object
3434
additionalProperties: false
35-
description: Source indice with replicas used to generate a Query Suggestions index.
35+
description: Source index with replicas used to generate a Query Suggestions index.
3636
required:
3737
- replicas
3838
- indexName

specs/query-suggestions/paths/qsConfig.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ delete:
5454
description: >
5555
Delete a configuration of a Query Suggestion's index.
5656
57-
By deleting a configuraton, you stop all updates to the underlying query suggestion index.
57+
By deleting a configuration, you stop all updates to the underlying query suggestion index.
5858
5959
Note that when doing this, the underlying index does not change - existing suggestions remain untouched.
6060
parameters:

specs/search/common/schemas/SearchResponse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ baseSearchResponse:
6363
description: Indicate if the nbHits count was exhaustive or approximate.
6464
exhaustiveTypo:
6565
type: boolean
66-
description: Indicate if the typo-tolerence search was exhaustive or approximate (only included when typo-tolerance is enabled).
66+
description: Indicate if the typo-tolerance search was exhaustive or approximate (only included when typo-tolerance is enabled).
6767
facets:
6868
type: object
6969
additionalProperties:

specs/search/common/schemas/listIndicesResponse.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ listIndicesResponse:
66
type: array
77
description: List of the fetched indices.
88
items:
9-
$ref: '#/indice'
9+
$ref: '#/fetchedIndex'
1010
nbPages:
1111
type: integer
1212
description: Number of pages.
1313
example: 100
1414

15-
indice:
15+
fetchedIndex:
1616
type: object
1717
additionalProperties: false
1818
properties:

specs/search/paths/advanced/getLogs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ get:
5151
description: Timestamp in ISO-8601 format.
5252
method:
5353
type: string
54-
description: HTTP method of the perfomed request.
54+
description: HTTP method of the performed request.
5555
answer_code:
5656
type: string
5757
description: HTTP response code.
@@ -66,7 +66,7 @@ get:
6666
description: Request URL.
6767
ip:
6868
type: string
69-
description: IP of the client which perfomed the request.
69+
description: IP of the client which performed the request.
7070
query_headers:
7171
type: string
7272
description: Request Headers (API Key is obfuscated).

specs/search/paths/dictionaries/batchDictionaryEntries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
post:
22
tags:
3-
- Dictionnaries
3+
- Dictionaries
44
operationId: batchDictionaryEntries
55
description: Send a batch of dictionary entries.
66
summary: Batch dictionary entries.

specs/search/paths/dictionaries/dictionarySettings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
get:
22
tags:
3-
- Dictionnaries
3+
- Dictionaries
44
operationId: getDictionarySettings
55
description: Retrieve dictionaries settings. The API stores languages whose standard entries are disabled. Fetch settings does not return false values.
66
summary: Retrieve dictionaries settings.
@@ -29,7 +29,7 @@ get:
2929

3030
put:
3131
tags:
32-
- Dictionnaries
32+
- Dictionaries
3333
operationId: setDictionarySettings
3434
description: Set dictionaries settings.
3535
summary: Set dictionaries settings.

specs/search/paths/dictionaries/getDictionaryLanguages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
get:
22
tags:
3-
- Dictionnaries
3+
- Dictionaries
44
operationId: getDictionaryLanguages
55
description: List dictionaries supported per language.
66
summary: List available languages.

specs/search/paths/dictionaries/searchDictionaryEntries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
post:
22
tags:
3-
- Dictionnaries
3+
- Dictionaries
44
operationId: searchDictionaryEntries
55
description: Search the dictionary entries.
66
summary: Search a dictionary entries.

specs/search/paths/manage_indices/operationIndex.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ post:
33
- Indices
44
operationId: operationIndex
55
summary: Copy/move index.
6-
description: Peforms a copy or a move operation on a index.
6+
description: Performs a copy or a move operation on a index.
77
parameters:
88
- $ref: '../../../common/parameters.yml#/IndexName'
99
requestBody:

specs/search/spec.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ tags:
4040
description: Manage your Api Keys.
4141
- name: Clusters
4242
description: Clusters operations.
43-
- name: Dictionnaries
44-
description: Dictionnaries operations.
43+
- name: Dictionaries
44+
description: Dictionaries operations.
4545
- name: Indices
4646
description: Manage indices.
4747
- name: Records
@@ -68,7 +68,7 @@ x-tagGroups:
6868
tags:
6969
- Rules
7070
- Synonyms
71-
- Dictionnaries
71+
- Dictionaries
7272
- name: Others
7373
tags:
7474
- Api Keys

0 commit comments

Comments
 (0)