Skip to content

Commit f516d02

Browse files
gazconroyGary Conroyshortcuts
authoredOct 9, 2024··
fix(specs): Typos in API descriptions (#3932)
Co-authored-by: Gary Conroy <gary.conroy@LON-M3P-GConroy.local> Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
1 parent f95e8ac commit f516d02

File tree

9 files changed

+17
-19
lines changed

9 files changed

+17
-19
lines changed
 

‎scripts/buildLanguages.ts

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ async function buildLanguage(language: Language, gens: Generator[], buildType: B
5959

6060
if (buildType !== 'guides') {
6161
fileNames = gens.reduce((prev, curr) => `${prev} ${createClientName(curr.client, curr.language)}.ts`, '');
62+
} else if (!fileNames.includes('search')) {
63+
// only search is needed for guides right now, if it's not being built, no need to validate guides
64+
break;
6265
}
6366

6467
await run(`yarn tsc ${fileNames} --noEmit`, {

‎specs/crawler/common/schemas/configuration.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Configuration:
99
actions:
1010
type: array
1111
description: |
12-
Instructions how to process crawled URLs.
12+
Instructions about how to process crawled URLs.
1313
1414
Each action defines:
1515
@@ -31,7 +31,7 @@ Configuration:
3131
The API key must have the following access control list (ACL) permissions:
3232
`search`, `browse`, `listIndexes`, `addObject`, `deleteObject`, `deleteIndex`, `settings`, `editSettings`.
3333
The API key must not be the admin API key of the application.
34-
The API key must have access to the indices which the crawler is supposed to create.
34+
The API key must have access to create the indices that the crawler will use.
3535
For example, if `indexPrefix` is `crawler_`, the API key must have access to all `crawler_*` indices.
3636
appId:
3737
$ref: '../parameters.yml#/applicationID'
@@ -54,7 +54,7 @@ Configuration:
5454
description: |
5555
References to external data sources for enriching the extracted records.
5656
57-
For more information, see [Enrich extrated records with external data](https://www.algolia.com/doc/tools/crawler/guides/enriching-extraction-with-external-data/).
57+
For more information, see [Enrich extracted records with external data](https://www.algolia.com/doc/tools/crawler/guides/enriching-extraction-with-external-data/).
5858
maxItems: 10
5959
items:
6060
type: string

‎specs/crawler/paths/crawlerTaskCancel.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ post:
44
description: |
55
Cancels a blocking task.
66
7-
Tasks that ran into an error block the futher schedule of your Crawler.
8-
To unblock the crawler, you can cancel the blocking task.
7+
Tasks that ran into an error will block your crawler's schedule.
8+
To unblock the crawler, cancel the blocking task.
99
tags:
1010
- tasks
1111
parameters:

‎specs/crawler/spec.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ info:
1414
1515
## Availability and authentication
1616
17-
Acess to the Crawler API is available with the [Crawler add-on](https://www.algolia.com/pricing/).
17+
Access to the Crawler API is available with the [Crawler add-on](https://www.algolia.com/pricing/).
1818
1919
To authenticate your API requests, use the **basic authentication** header:
2020
@@ -73,7 +73,7 @@ tags:
7373
In the Crawler configuration, you specify which URLs to crawl, when to crawl, how to extract records from the crawl, and where to index the extracted records.
7474
The configuration is versioned, so you can always restore a previous version.
7575
It's easiest to make configuration changes in the [Crawler dashboard](https://crawler.algolia.com/admin/).
76-
The editor has autocomplete and builtin validation so you can try your configuration changes before comitting them.
76+
The editor has autocomplete and built-in validation so you can try your configuration changes before committing them.
7777
- name: crawlers
7878
x-displayName: Crawler
7979
description: |

‎specs/ingestion/common/schemas/transformation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Description:
3535
description: A descriptive name for your transformation of what it does.
3636

3737
AuthenticationIDs:
38-
description: The authentications associated for the current transformation.
38+
description: The authentications associated with the current transformation.
3939
type: array
4040
items:
4141
$ref: './common.yml#/authenticationID'

‎specs/ingestion/paths/runs/events/events.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ get:
22
tags:
33
- observability
44
summary: List task run events
5-
description: Retrieves a list of events for a task run, identified by it's ID.
5+
description: Retrieves a list of events for a task run, identified by its ID.
66
operationId: listEvents
77
x-acl:
88
- addObject

‎specs/ingestion/spec.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,9 @@ info:
3838
Successful responses return a `2xx` status. Client errors return a `4xx` status. Server errors are indicated by a `5xx` status.
3939
Error responses have a `message` property with more information.
4040
41-
The Insights API doesn't validate if the event parameters such as `indexName`, `objectIDs`, or `userToken`,
42-
correspond to anything in the Search API. It justs checks if they're formatted correctly.
43-
Check the [Events](https://dashboard.algolia.com/events/health) health section,
44-
whether your events can be used for Algolia features such as Analytics, or Dynamic Re-Ranking.
45-
4641
## Version
4742
48-
The current version of the Insights API is version 1, as indicated by the `/1/` in each endpoint's URL.
43+
The current version of the Ingestion API is version 1, as indicated by the `/1/` in each endpoint's URL.
4944
5045
version: 1.0.0
5146
components:

‎specs/insights/spec.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ info:
1010
## Client libraries
1111
1212
Use Algolia's API clients, libraries, and integrations to collect events from your UI and send them to the Insights API.
13-
See: [Algolia's ecosystem](https://www.algolia.com/doc/guides/getting-started/how-algolia-works/in-depth/ecosystem/)
13+
See: [Algolia's ecosystem](https://www.algolia.com/doc/guides/getting-started/how-algolia-works/in-depth/ecosystem/).
1414
1515
## Base URLs
1616
@@ -45,7 +45,7 @@ info:
4545
Error responses have a `message` property with more information.
4646
4747
The Insights API doesn't validate if the event parameters such as `indexName`, `objectIDs`, or `userToken`,
48-
correspond to anything in the Search API. It justs checks if they're formatted correctly.
48+
correspond to anything in the Search API. It just checks if they're formatted correctly.
4949
Check the [Events](https://dashboard.algolia.com/events/health) health section,
5050
whether your events can be used for Algolia features such as Analytics, or Dynamic Re-Ranking.
5151
@@ -79,7 +79,7 @@ tags:
7979
x-displayName: Events
8080
description: >-
8181
Events represent user interactions with your website or app.
82-
They include details like the event's name, type, a timestamp or a user token.
82+
They include details like the event's name, type, a timestamp, or a user token.
8383
- name: usertokens
8484
x-displayName: User tokens
8585
description: |

‎specs/monitoring/common/parameters.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Clusters:
33
name: clusters
44
in: path
55
required: true
6-
description: Subset of clusters, separated by comma.
6+
description: Subset of clusters, separated by commas.
77
schema:
88
# The `correct` (?) schema should be type array/items string,
99
# But the SDK generator expects a string, because it can't replace a list of strings in the URL.

0 commit comments

Comments
 (0)
Please sign in to comment.