Skip to content

Commit df66b6f

Browse files
committed
all ignore comments for existing violations
1 parent eb09f0f commit df66b6f

File tree

48 files changed

+87
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+87
-3
lines changed

specification/_global/delete/DeleteResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class Response {
2929
* the response is the same as the successful case, but with a 404.
3030
*/
3131
statusCodes: [404]
32+
// eslint-disable-next-line es-spec-validator/no-inline-unions, es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
3233
body: WriteResponseBase | ErrorResponseBase
3334
}
3435
]

specification/_global/get/GetResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class Response<TDocument> {
2929
// * index_not_found_exception as an error if the index doesn't exist
3030
// * GetResult with only the requested _id, _index properties and found as a false boolean
3131
statusCodes: [404]
32+
// eslint-disable-next-line es-spec-validator/no-inline-unions, es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
3233
body: GetResult<TDocument> | ErrorResponseBase
3334
}
3435
]

specification/_global/scripts_painless_execute/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,6 @@ export class PainlessScript {
9797
* * `long`: `emit(long)`
9898
* * `keyword`: `emit(String)`
9999
*/
100+
// eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias
100101
emit: boolean | DateTime | double | string | Ip | long
101102
}

specification/_global/search/SearchRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ export interface Request extends RequestBase {
463463
* @availability serverless
464464
* @ext_doc_id knn-approximate
465465
*/
466+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
466467
knn?: KnnSearch | KnnSearch[]
467468
/**
468469
* The Reciprocal Rank Fusion (RRF) to use.
@@ -494,6 +495,7 @@ export interface Request extends RequestBase {
494495
/**
495496
* Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the `query` and `post_filter` phases.
496497
*/
498+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
497499
rescore?: Rescore | Rescore[]
498500
/**
499501
* A retriever is a specification to describe top documents returned from a search.

specification/_global/search/_types/FieldCollapse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export class FieldCollapse {
3232
/**
3333
* The number of inner hits and their sort order
3434
*/
35+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
3536
inner_hits?: InnerHits | InnerHits[]
3637
/**
3738
* The number of concurrent requests allowed to retrieve the inner_hits per group

specification/_global/search/_types/SearchRequestBody.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export class SearchRequestBody {
9898
* @availability serverless
9999
* @ext_doc_id knn-approximate
100100
*/
101+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
101102
knn?: KnnSearch | KnnSearch[]
102103
/**
103104
* The Reciprocal Rank Fusion (RRF) to use.
@@ -129,6 +130,7 @@ export class SearchRequestBody {
129130
/**
130131
* Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the `query` and `post_filter` phases.
131132
*/
133+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
132134
rescore?: Rescore | Rescore[]
133135
/**
134136
* A retriever is a specification to describe top documents returned from a search.

specification/_global/search/_types/hits.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class Hit<TDocument> {
5252
fields?: Dictionary<string, UserDefinedValue>
5353
highlight?: Dictionary<string, string[]>
5454
inner_hits?: Dictionary<string, InnerHitsResult>
55+
// eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias
5556
matched_queries?: string[] | Dictionary<string, double>
5657
_nested?: NestedIdentity
5758
_ignored?: string[]
@@ -69,6 +70,7 @@ export class Hit<TDocument> {
6970

7071
export class HitsMetadata<T> {
7172
/** Total hit count information, present only if `track_total_hits` wasn't `false` in the search request. */
73+
// eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias
7274
total?: TotalHits | long
7375
hits: Hit<T>[]
7476

specification/_global/search/_types/suggester.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,23 @@ export class SuggestBase {
5050
* @variant name=completion
5151
*/
5252
export class CompletionSuggest<TDocument> extends SuggestBase {
53-
options:
54-
| CompletionSuggestOption<TDocument>
55-
| CompletionSuggestOption<TDocument>[]
53+
options: // eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
54+
CompletionSuggestOption<TDocument> | CompletionSuggestOption<TDocument>[]
5655
}
5756

5857
/**
5958
* @variant name=phrase
6059
*/
6160
export class PhraseSuggest extends SuggestBase {
61+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
6262
options: PhraseSuggestOption | PhraseSuggestOption[]
6363
}
6464

6565
/**
6666
* @variant name=term
6767
*/
6868
export class TermSuggest extends SuggestBase {
69+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
6970
options: TermSuggestOption | TermSuggestOption[]
7071
}
7172

@@ -186,6 +187,7 @@ export class RegexOptions {
186187
* Optional operators for the regular expression.
187188
* @doc_id regexp-syntax
188189
*/
190+
// eslint-disable-next-line es-spec-validator/no-inline-unions -- TODO: create named alias
189191
flags?: integer | string
190192
/**
191193
* Maximum number of automaton states required for the query.

specification/_types/Knn.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export interface KnnSearch {
5151
/** Boost value to apply to kNN scores */
5252
boost?: float
5353
/** Filters for the kNN search query */
54+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
5455
filter?: QueryContainer | QueryContainer[]
5556
/** The minimum similarity for a vector to be considered a match */
5657
similarity?: float
@@ -86,6 +87,7 @@ export interface KnnQuery extends QueryBase {
8687
/** The final number of nearest neighbors to return as top hits */
8788
k?: integer
8889
/** Filters for the kNN search query */
90+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
8991
filter?: QueryContainer | QueryContainer[]
9092
/** The minimum similarity for a vector to be considered a match */
9193
similarity?: float

specification/_types/Retriever.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class RetrieverContainer {
5353

5454
export class RetrieverBase {
5555
/** Query to filter the documents that can match. */
56+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
5657
filter?: QueryContainer | QueryContainer[]
5758
/** Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. */
5859
min_score?: float
@@ -63,6 +64,7 @@ export class RetrieverBase {
6364
export class RescorerRetriever extends RetrieverBase {
6465
/** Inner retriever. */
6566
retriever: RetrieverContainer
67+
// eslint-disable-next-line es-spec-validator/prefer-tagged-variants -- TODO: use tagged variant
6668
rescore: Rescore | Rescore[]
6769
}
6870

0 commit comments

Comments
 (0)