Skip to content

Commit ae9fcc9

Browse files
author
ljacobsson
committed
fix: badly formatted event pattern in evb-diagram, replay bug, prettier code bindings
1 parent 56141a2 commit ae9fcc9

File tree

6 files changed

+78
-0
lines changed

6 files changed

+78
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"cfn-resource-actions.stackName": "serverlessrepo-evb-local"
3+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const { CSharpTargetLanguage } = require("quicktype-core");
2+
const {
3+
StringOption,
4+
EnumOption,
5+
} = require("quicktype-core/dist/RendererOptions");
6+
7+
const cSharpOptions = require("quicktype-core/dist/language/CSharp");
8+
const languages = require("quicktype-core/dist/language/All");
9+
languages.all.splice(languages.all.findIndex(v => v.displayName === "C#"), 1)
10+
languages.all.unshift(new CSharpTargetLanguage("C#", ["csharp"], "cs"));
11+
cSharpOptions.cSharpOptions.namespace = new StringOption(
12+
"Namespace",
13+
null,
14+
null,
15+
"AutoGenerated"
16+
);
17+
cSharpOptions.cSharpOptions.useList = new EnumOption(
18+
"array-type",
19+
"Use T[] or List<T>",
20+
[
21+
["array", true],
22+
["list", false],
23+
]
24+
);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const {
2+
BooleanOption,
3+
} = require("quicktype-core/dist/RendererOptions");
4+
5+
const options = require("quicktype-core/dist/language/Java");
6+
7+
options.javaOptions.justTypes = new BooleanOption(
8+
"JustTypes",
9+
null,
10+
true
11+
);
12+
options.javaOptions.useList = new BooleanOption(
13+
"UseList",
14+
null,
15+
true
16+
);
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const {
2+
BooleanOption,
3+
} = require("quicktype-core/dist/RendererOptions");
4+
5+
const pythonOptions = require("quicktype-core/dist/language/Python");
6+
7+
pythonOptions.pythonOptions.justTypes = new BooleanOption(
8+
"JustTypes",
9+
null,
10+
true
11+
);
12+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const {
2+
BooleanOption,
3+
} = require("quicktype-core/dist/RendererOptions");
4+
5+
const options = require("quicktype-core/dist/language/Swift");
6+
7+
options.swiftOptions.justTypes = new BooleanOption(
8+
"JustTypes",
9+
null,
10+
true
11+
);
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const {
2+
BooleanOption,
3+
} = require("quicktype-core/dist/RendererOptions");
4+
5+
const typeScriptOptions = require("quicktype-core/dist/language/TypeScriptFlow");
6+
7+
typeScriptOptions.tsFlowOptions.justTypes = new BooleanOption(
8+
"JustTypes",
9+
null,
10+
true
11+
);
12+

0 commit comments

Comments
 (0)