Skip to content

Commit 8ce3aad

Browse files
authored
snippets: remove snippets for non-existing helpers (#5368)
1 parent d1e0f53 commit 8ce3aad

File tree

11 files changed

+102
-4
lines changed

11 files changed

+102
-4
lines changed

scripts/buildLanguages.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ async function buildLanguage(language: Language, gens: Generator[], buildType: B
3838
await run('dotnet build --configuration Release', { cwd, language });
3939
break;
4040
case 'dart':
41-
if (buildType !== 'snippets') {
42-
// fix the snippets at some point
43-
await run('dart pub get && dart analyze', { cwd, language });
44-
}
41+
await run('dart pub get && dart analyze', { cwd, language });
4542
break;
4643
case 'go':
4744
await run('go build -o /dev/null ./...', { cwd, language });

specs/search/helpers/deleteObjects.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ method:
33
x-helper: true
44
tags:
55
- Records
6+
x-available-languages:
7+
- csharp
8+
- go
9+
- java
10+
- javascript
11+
- kotlin
12+
- php
13+
- python
14+
- ruby
15+
- scala
16+
- swift
617
operationId: deleteObjects
718
summary: Deletes every records for the given objectIDs
819
description: |

specs/search/helpers/generateSecuredApiKey.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ method:
44
x-asynchronous-helper: false
55
tags:
66
- Api Keys
7+
x-available-languages:
8+
- csharp
9+
- go
10+
- java
11+
- javascript
12+
- kotlin
13+
- php
14+
- python
15+
- ruby
16+
- scala
17+
- swift
718
operationId: generateSecuredApiKey
819
summary: Create secured API keys
920
description: |

specs/search/helpers/indexExists.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ method:
33
x-helper: true
44
tags:
55
- Index
6+
x-available-languages:
7+
- csharp
8+
- go
9+
- java
10+
- javascript
11+
- kotlin
12+
- php
13+
- python
14+
- ruby
15+
- scala
16+
- swift
617
operationId: indexExists
718
summary: Check if an index exists or not
819
description: |

specs/search/helpers/partialUpdateObjects.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ method:
33
x-helper: true
44
tags:
55
- Records
6+
x-available-languages:
7+
- csharp
8+
- go
9+
- java
10+
- javascript
11+
- kotlin
12+
- php
13+
- python
14+
- ruby
15+
- scala
16+
- swift
617
operationId: partialUpdateObjects
718
summary: Replaces object content of all the given objects according to their respective `objectID` field
819
description: |

specs/search/helpers/replaceAllObjects.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ method:
33
x-helper: true
44
tags:
55
- Records
6+
x-available-languages:
7+
- csharp
8+
- go
9+
- java
10+
- javascript
11+
- kotlin
12+
- php
13+
- python
14+
- ruby
15+
- scala
16+
- swift
617
operationId: replaceAllObjects
718
summary: Replace all records in an index
819
description: |

specs/search/helpers/saveObjects.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ method:
33
x-helper: true
44
tags:
55
- Records
6+
x-available-languages:
7+
- csharp
8+
- go
9+
- java
10+
- javascript
11+
- kotlin
12+
- php
13+
- python
14+
- ruby
15+
- scala
16+
- swift
617
operationId: saveObjects
718
summary: Saves the given array of objects in the given index
819
description: |

specs/search/helpers/waitForApiKey.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ method:
33
x-helper: true
44
tags:
55
- Api Keys
6+
x-available-languages:
7+
- csharp
8+
- go
9+
- java
10+
- javascript
11+
- kotlin
12+
- php
13+
- python
14+
- ruby
15+
- scala
16+
- swift
617
operationId: waitForApiKey
718
summary: Wait for an API key operation
819
description: Waits for an API key to be added, updated, or deleted.

specs/search/helpers/waitForAppTask.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
method:
22
get:
33
x-helper: true
4+
x-available-languages:
5+
- csharp
6+
- go
7+
- java
8+
- javascript
9+
- kotlin
10+
- php
11+
- python
12+
- ruby
13+
- scala
14+
- swift
415
operationId: waitForAppTask
516
summary: Wait for application-level operation to complete
617
description: Wait for a application-level task to complete.

specs/search/helpers/waitForTask.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ method:
33
x-helper: true
44
tags:
55
- Records
6+
# it's called waitTask in dart
7+
x-available-languages:
8+
- csharp
9+
- go
10+
- java
11+
- javascript
12+
- kotlin
13+
- php
14+
- python
15+
- ruby
16+
- scala
17+
- swift
618
operationId: waitForTask
719
summary: Wait for operation to complete
820
description: |

0 commit comments

Comments
 (0)