Skip to content

Commit

Permalink
optional fields in term vector res (#2724)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta authored Jul 16, 2024
1 parent f8b2820 commit 5615a46
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 18 deletions.
3 changes: 0 additions & 3 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion specification/_global/mtermvectors/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class Operation {
}

export class TermVectorsResult {
_id: Id
_id?: Id
_index: IndexName
_version?: VersionNumber
took?: long
Expand Down
2 changes: 1 addition & 1 deletion specification/_global/termvectors/TermVectorsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { TermVector } from './types'
export class Response {
body: {
found: boolean
_id: Id
_id?: Id
_index: IndexName
term_vectors?: Dictionary<Field, TermVector>
took: long
Expand Down
2 changes: 1 addition & 1 deletion specification/_global/termvectors/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Dictionary } from '@spec_utils/Dictionary'
import { double, integer, long } from '@_types/Numeric'

export class TermVector {
field_statistics: FieldStatistics
field_statistics?: FieldStatistics
terms: Dictionary<string, Term>
}

Expand Down

0 comments on commit 5615a46

Please sign in to comment.