Skip to content

Commit 526f8cb

Browse files
committed
Fix stubbed rollup API
1 parent 89a1e48 commit 526f8cb

File tree

5 files changed

+28
-62
lines changed

5 files changed

+28
-62
lines changed

output/schema/schema.json

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9204,7 +9204,7 @@
92049204
"namespace": "rollup.rollup"
92059205
},
92069206
"since": "7.13.0",
9207-
"stability": "TODO",
9207+
"stability": "experimental",
92089208
"urls": [
92099209
{
92109210
"methods": [
@@ -123999,20 +123999,10 @@
123999123999
"CommonQueryParameters"
124000124000
],
124001124001
"body": {
124002-
"kind": "properties",
124003-
"properties": [
124004-
{
124005-
"name": "stub",
124006-
"required": true,
124007-
"type": {
124008-
"kind": "instance_of",
124009-
"type": {
124010-
"name": "integer",
124011-
"namespace": "_types"
124012-
}
124013-
}
124014-
}
124015-
]
124002+
"kind": "value",
124003+
"value": {
124004+
"kind": "user_defined_value"
124005+
}
124016124006
},
124017124007
"inherits": {
124018124008
"type": {
@@ -124027,47 +124017,36 @@
124027124017
},
124028124018
"path": [
124029124019
{
124030-
"name": "stubb",
124020+
"name": "index",
124031124021
"required": true,
124032124022
"type": {
124033124023
"kind": "instance_of",
124034124024
"type": {
124035-
"name": "integer",
124025+
"name": "IndexName",
124036124026
"namespace": "_types"
124037124027
}
124038124028
}
124039-
}
124040-
],
124041-
"query": [
124029+
},
124042124030
{
124043-
"name": "stuba",
124031+
"name": "rollup_index",
124044124032
"required": true,
124045124033
"type": {
124046124034
"kind": "instance_of",
124047124035
"type": {
124048-
"name": "integer",
124036+
"name": "IndexName",
124049124037
"namespace": "_types"
124050124038
}
124051124039
}
124052124040
}
124053-
]
124041+
],
124042+
"query": []
124054124043
},
124055124044
{
124056124045
"body": {
124057-
"kind": "properties",
124058-
"properties": [
124059-
{
124060-
"name": "stub",
124061-
"required": true,
124062-
"type": {
124063-
"kind": "instance_of",
124064-
"type": {
124065-
"name": "integer",
124066-
"namespace": "_types"
124067-
}
124068-
}
124069-
}
124070-
]
124046+
"kind": "value",
124047+
"value": {
124048+
"kind": "user_defined_value"
124049+
}
124071124050
},
124072124051
"kind": "response",
124073124052
"name": {

output/schema/validation-errors.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,12 +1351,6 @@
13511351
],
13521352
"response": []
13531353
},
1354-
"rollup.rollup": {
1355-
"request": [
1356-
"Endpoint has \"@stability: TODO"
1357-
],
1358-
"response": []
1359-
},
13601354
"rollup.start_job": {
13611355
"request": [
13621356
"Endpoint has \"@stability: TODO"

output/typescript/types.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12768,16 +12768,12 @@ export interface RollupPutJobResponse extends AcknowledgedResponseBase {
1276812768
}
1276912769

1277012770
export interface RollupRollupRequest extends RequestBase {
12771-
stubb: integer
12772-
stuba: integer
12773-
body?: {
12774-
stub: integer
12775-
}
12771+
index: IndexName
12772+
rollup_index: IndexName
12773+
body?: any
1277612774
}
1277712775

12778-
export interface RollupRollupResponse {
12779-
stub: integer
12780-
}
12776+
export type RollupRollupResponse = any
1278112777

1278212778
export interface RollupRollupSearchRequest extends RequestBase {
1278312779
index: Indices

specification/rollup/rollup/RollupRequest.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,19 @@
1717
* under the License.
1818
*/
1919

20+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2021
import { RequestBase } from '@_types/Base'
21-
import { integer } from '@_types/Numeric'
22+
import { IndexName } from '@_types/common'
2223

2324
/**
2425
* @rest_spec_name rollup.rollup
2526
* @since 7.13.0
26-
* @stability TODO
27+
* @stability experimental
2728
*/
2829
export interface Request extends RequestBase {
2930
path_parts?: {
30-
stubb: integer
31-
}
32-
query_parameters?: {
33-
stuba: integer
34-
}
35-
body?: {
36-
stub: integer
31+
index: IndexName
32+
rollup_index: IndexName
3733
}
34+
body?: UserDefinedValue // TODO: This API is experimental and no docs exist describing it. Requires reverse engineering if made stable
3835
}

specification/rollup/rollup/RollupResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
import { integer } from '@_types/Numeric'
20+
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2121

2222
export class Response {
23-
body: { stub: integer }
23+
body: UserDefinedValue // TODO: This API is experimental and no docs exist describing it. Requires reverse engineering if made stable
2424
}

0 commit comments

Comments
 (0)