Skip to content

Commit

Permalink
Use IndexName in connectors API
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Apr 15, 2024
1 parent 4718254 commit 9e0b112
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion specification/connector/post/ConnectorPostRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* under the License.
*/
import { RequestBase } from '@_types/Base'
import { IndexName } from '@_types/common'
import { WithNullValue } from '@spec_utils/utils'

/**
Expand All @@ -33,7 +34,7 @@ export interface Request extends RequestBase {
/** @codegen_name connector */
body: {
description?: string
index_name: WithNullValue<string>
index_name: WithNullValue<IndexName>
is_native?: boolean
language?: string
name?: string
Expand Down
4 changes: 2 additions & 2 deletions specification/connector/put/ConnectorPutRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Id, IndexName } from '@_types/common'
import { WithNullValue } from '@spec_utils/utils'

/**
Expand All @@ -40,7 +40,7 @@ export interface Request extends RequestBase {
/** @codegen_name connector */
body: {
description?: string
index_name: WithNullValue<string>
index_name: WithNullValue<IndexName>
is_native?: boolean
language?: string
name?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { Id, IndexName } from '@_types/common'
import { WithNullValue } from '@spec_utils/utils'

/**
Expand All @@ -38,6 +38,6 @@ export interface Request extends RequestBase {
* The connector index name
*/
body: {
index_name: WithNullValue<string>
index_name: WithNullValue<IndexName>
}
}

0 comments on commit 9e0b112

Please sign in to comment.