File tree Expand file tree Collapse file tree 4 files changed +205
-15
lines changed
specification/security/bulk_put_role Expand file tree Collapse file tree 4 files changed +205
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"dependencies" : {
3
- "@stoplight/spectral-cli" : " ^6.11.1"
3
+ "@stoplight/spectral-cli" : " ^6.11.1" ,
4
+ "ts-node" : " ^10.9.2"
4
5
}
5
6
}
Original file line number Diff line number Diff line change 17
17
* under the License.
18
18
*/
19
19
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" ;
23
21
24
22
export class Response {
25
23
body : {
@@ -38,15 +36,6 @@ export class Response {
38
36
/**
39
37
* Present if any updates resulted in errors
40
38
*/
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
51
40
}
52
41
}
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments