Skip to content

Commit fcc34e6

Browse files
committed
fixup! type
1 parent 904b562 commit fcc34e6

File tree

4 files changed

+205
-15
lines changed

4 files changed

+205
-15
lines changed

package-lock.json

Lines changed: 168 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"dependencies": {
3-
"@stoplight/spectral-cli": "^6.11.1"
3+
"@stoplight/spectral-cli": "^6.11.1",
4+
"ts-node": "^10.9.2"
45
}
56
}

specification/security/bulk_put_role/SecurityBulkPutRoleResponse.ts

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

20-
import { integer } from '@_types/Numeric'
21-
import { ErrorCause } from '@_types/Errors'
22-
import { Dictionary } from '@spec_utils/Dictionary'
20+
import {BulkError} from "@security/bulk_put_role/types";
2321

2422
export class Response {
2523
body: {
@@ -38,15 +36,6 @@ export class Response {
3836
/**
3937
* Present if any updates resulted in errors
4038
*/
41-
errors?: {
42-
/**
43-
* The number of errors
44-
*/
45-
count: integer
46-
/**
47-
* Details about the errors, keyed by role name
48-
*/
49-
details: Dictionary<string, ErrorCause>
50-
}
39+
errors?: BulkError
5140
}
5241
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
import {integer} from "@_types/Numeric";
21+
import {Dictionary} from "@spec_utils/Dictionary";
22+
import {ErrorCause} from "@_types/Errors";
23+
24+
export class BulkError {
25+
/**
26+
* The number of errors
27+
*/
28+
count: integer
29+
/**
30+
* Details about the errors, keyed by role name
31+
*/
32+
details: Dictionary<string, ErrorCause>
33+
}

0 commit comments

Comments
 (0)