Skip to content

Commit 8490783

Browse files
Alan-ChaErikWittern
authored andcommitted
Prettier JSON files
Signed-off-by: Alan Cha <[email protected]>
1 parent f50f456 commit 8490783

14 files changed

+35671
-37216
lines changed

lerna.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"packages": [
3-
"packages/*"
4-
],
2+
"packages": ["packages/*"],
53
"version": "independent",
64
"command": {
75
"bootstrap": {

packages/openapi-to-graphql-cli/tsconfig.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
"skipLibCheck": true,
88
"lib": ["es2017"]
99
},
10-
"files": [
11-
"./node_modules/@types/node/index.d.ts"
12-
],
13-
"include": [
14-
"src/**/*.ts"
15-
],
16-
"exclude": [
17-
"node_modules"
18-
]
10+
"files": ["./node_modules/@types/node/index.d.ts"],
11+
"include": ["src/**/*.ts"],
12+
"exclude": ["node_modules"]
1913
}
Lines changed: 100 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,108 @@
11
{
2-
"openapi": "3.0.0",
3-
"info": {
4-
"title": "test-action-2",
5-
"version": "1.0.0"
6-
},
7-
"paths": {
8-
"/test-action-2": {
9-
"post": {
10-
"description": "Description of the action",
11-
"responses": {
12-
"200": {
13-
"description": "Success response for test-action-2",
14-
"content": {
15-
"application/json": {
16-
"schema": {
17-
"$ref": "#/components/schemas/Response"
18-
}
19-
}
20-
}
21-
},
22-
"default": {
23-
"description": "Error response for test-action-2",
24-
"content": {
25-
"application/json": {
26-
"schema": {
27-
"$ref": "#/components/schemas/Error"
28-
}
29-
}
30-
}
31-
}
32-
},
33-
"parameters": [{
34-
"name": "blocking",
35-
"in": "query",
36-
"schema": {
37-
"type": "boolean",
38-
"default": true
39-
}
40-
}, {
41-
"name": "result",
42-
"in": "query",
43-
"schema": {
44-
"type": "boolean",
45-
"default": true
46-
}
47-
}],
48-
"security": [{
49-
"basic_protocol": []
50-
}],
51-
"requestBody": {
52-
"content": {
53-
"application/json": {
54-
"schema": {
55-
"$ref": "#/components/schemas/Payload"
56-
}
57-
}
58-
}
2+
"openapi": "3.0.0",
3+
"info": {
4+
"title": "test-action-2",
5+
"version": "1.0.0"
6+
},
7+
"paths": {
8+
"/test-action-2": {
9+
"post": {
10+
"description": "Description of the action",
11+
"responses": {
12+
"200": {
13+
"description": "Success response for test-action-2",
14+
"content": {
15+
"application/json": {
16+
"schema": {
17+
"$ref": "#/components/schemas/Response"
5918
}
19+
}
6020
}
61-
}
62-
},
63-
"servers": [{
64-
"url": "https://openwhisk.ng.bluemix.net/api/v1/namespaces/_/actions"
65-
}],
66-
"components": {
67-
"schemas": {
68-
"Response": {
69-
"type": "object",
70-
"properties": {
71-
"payload": {
72-
"type": "string"
73-
},
74-
"age": {
75-
"type": "number"
76-
},
77-
"valid": {
78-
"type": "boolean"
79-
}
80-
},
81-
"required": ["payload", "age", "valid"]
82-
},
83-
"Error": {},
84-
"Payload": {
85-
"type": "object",
86-
"properties": {
87-
"age": {
88-
"type": "number"
89-
}
90-
},
91-
"required": ["age"]
21+
},
22+
"default": {
23+
"description": "Error response for test-action-2",
24+
"content": {
25+
"application/json": {
26+
"schema": {
27+
"$ref": "#/components/schemas/Error"
28+
}
29+
}
9230
}
31+
}
9332
},
94-
"securitySchemes": {
95-
"basic_protocol": {
96-
"type": "http",
97-
"scheme": "basic"
33+
"parameters": [
34+
{
35+
"name": "blocking",
36+
"in": "query",
37+
"schema": {
38+
"type": "boolean",
39+
"default": true
40+
}
41+
},
42+
{
43+
"name": "result",
44+
"in": "query",
45+
"schema": {
46+
"type": "boolean",
47+
"default": true
48+
}
49+
}
50+
],
51+
"security": [
52+
{
53+
"basic_protocol": []
54+
}
55+
],
56+
"requestBody": {
57+
"content": {
58+
"application/json": {
59+
"schema": {
60+
"$ref": "#/components/schemas/Payload"
61+
}
9862
}
63+
}
9964
}
65+
}
66+
}
67+
},
68+
"servers": [
69+
{
70+
"url": "https://openwhisk.ng.bluemix.net/api/v1/namespaces/_/actions"
71+
}
72+
],
73+
"components": {
74+
"schemas": {
75+
"Response": {
76+
"type": "object",
77+
"properties": {
78+
"payload": {
79+
"type": "string"
80+
},
81+
"age": {
82+
"type": "number"
83+
},
84+
"valid": {
85+
"type": "boolean"
86+
}
87+
},
88+
"required": ["payload", "age", "valid"]
89+
},
90+
"Error": {},
91+
"Payload": {
92+
"type": "object",
93+
"properties": {
94+
"age": {
95+
"type": "number"
96+
}
97+
},
98+
"required": ["age"]
99+
}
100+
},
101+
"securitySchemes": {
102+
"basic_protocol": {
103+
"type": "http",
104+
"scheme": "basic"
105+
}
100106
}
101-
}
107+
}
108+
}

packages/openapi-to-graphql/test/fixtures/docusign_oas.json

Lines changed: 34850 additions & 35483 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)