-
Notifications
You must be signed in to change notification settings - Fork 68
/
config.yaml
58 lines (57 loc) · 1.71 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
title: OpenMeterClient
namespace: openmeter
python: true
black: true
input-file: ../../openapi.yaml
output-folder: ./src
clear-output-folder: true
verbose: true
trace: true
version-tolerant: true
override-client-name: Client
use: ["@autorest/[email protected]", "@autorest/[email protected]"]
directive:
- from: openapi-document
where: "$.components.parameters[*]"
transform: >
$["x-ms-parameter-location"] = "method";
- from: openapi-document
where: "$.components.responses.BadRequestProblemResponse"
transform: >
$["x-ms-error-response"] = true;
- from: openapi-document
where: "$.components.responses.UnauthorizedProblemResponse"
transform: >
$["x-ms-error-response"] = true;
- from: openapi-document
where: "$.components.responses.NotFoundProblemResponse"
transform: >
$["x-ms-error-response"] = true;
- from: openapi-document
where: "$.components.responses.NotImplementedProblemResponse"
transform: >
$["x-ms-error-response"] = true;
- from: openapi-document
where: "$.components.responses.UnexpectedProblemResponse"
transform: >
$["x-ms-error-response"] = true;
# remove CloudCookieAuth from securitySchemes
# and remove it from the security requirements
- from: openapi-document
where: "$.components.securitySchemes.CloudCookieAuth"
transform: >
return undefined;
- from: openapi-document
where: "$.security[*]"
transform: >
if ($.CloudCookieAuth) {
return undefined;
}
return $;
suppressions:
- code: UnkownSecurityScheme
from: openapi-document
reason: Unkown security scheme
- code: PreCheck/CheckDuplicateSchemas
from: openapi-document
reason: Validator already checks