Skip to content

Commit f6e549b

Browse files
committed
use more elaborate types
1 parent 070026f commit f6e549b

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

output/schema/schema.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16697,8 +16697,8 @@
1669716697
"type": {
1669816698
"kind": "instance_of",
1669916699
"type": {
16700-
"name": "string",
16701-
"namespace": "internal"
16700+
"name": "Name",
16701+
"namespace": "_types"
1670216702
}
1670316703
}
1670416704
},
@@ -16708,8 +16708,8 @@
1670816708
"type": {
1670916709
"kind": "instance_of",
1671016710
"type": {
16711-
"name": "string",
16712-
"namespace": "internal"
16711+
"name": "Uuid",
16712+
"namespace": "_types"
1671316713
}
1671416714
}
1671516715
},
@@ -16719,8 +16719,8 @@
1671916719
"type": {
1672016720
"kind": "instance_of",
1672116721
"type": {
16722-
"name": "string",
16723-
"namespace": "internal"
16722+
"name": "Name",
16723+
"namespace": "_types"
1672416724
}
1672516725
}
1672616726
},

output/typescript/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ export interface InfoRequest extends RequestBase {
504504
}
505505

506506
export interface InfoResponse {
507-
cluster_name: string
508-
cluster_uuid: string
509-
name: string
507+
cluster_name: Name
508+
cluster_uuid: Uuid
509+
name: Name
510510
tagline: string
511511
version: ElasticsearchVersionInfo
512512
}

specification/_global/info/RootNodeInfoRequest.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,4 @@ import { RequestBase } from '@_types/Base'
2424
* @since 0.0.0
2525
* @stability TODO
2626
*/
27-
export interface Request extends RequestBase {
28-
query_parameters?: {}
29-
body?: {}
30-
}
27+
export interface Request extends RequestBase {}

specification/_global/info/RootNodeInfoResponse.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
*/
1919

2020
import { ElasticsearchVersionInfo } from '@_types/Base'
21+
import { Name, Uuid } from '@_types/common'
2122

2223
export class Response {
2324
body: {
24-
cluster_name: string
25-
cluster_uuid: string
26-
name: string
25+
cluster_name: Name
26+
cluster_uuid: Uuid
27+
name: Name
2728
tagline: string
2829
version: ElasticsearchVersionInfo
2930
}

0 commit comments

Comments
 (0)