Skip to content

Commit

Permalink
fix: badly formatted event pattern in evb-diagram, replay bug, pretti…
Browse files Browse the repository at this point in the history
…er code bindings
  • Loading branch information
ljacobsson committed Mar 29, 2022
1 parent 56141a2 commit ae9fcc9
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cfn-resource-actions.stackName": "serverlessrepo-evb-local"
}
24 changes: 24 additions & 0 deletions src/commands/code-binding/languages/csharp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const { CSharpTargetLanguage } = require("quicktype-core");
const {
StringOption,
EnumOption,
} = require("quicktype-core/dist/RendererOptions");

const cSharpOptions = require("quicktype-core/dist/language/CSharp");
const languages = require("quicktype-core/dist/language/All");
languages.all.splice(languages.all.findIndex(v => v.displayName === "C#"), 1)
languages.all.unshift(new CSharpTargetLanguage("C#", ["csharp"], "cs"));
cSharpOptions.cSharpOptions.namespace = new StringOption(
"Namespace",
null,
null,
"AutoGenerated"
);
cSharpOptions.cSharpOptions.useList = new EnumOption(
"array-type",
"Use T[] or List<T>",
[
["array", true],
["list", false],
]
);
16 changes: 16 additions & 0 deletions src/commands/code-binding/languages/java.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const {
BooleanOption,
} = require("quicktype-core/dist/RendererOptions");

const options = require("quicktype-core/dist/language/Java");

options.javaOptions.justTypes = new BooleanOption(
"JustTypes",
null,
true
);
options.javaOptions.useList = new BooleanOption(
"UseList",
null,
true
);
12 changes: 12 additions & 0 deletions src/commands/code-binding/languages/python.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const {
BooleanOption,
} = require("quicktype-core/dist/RendererOptions");

const pythonOptions = require("quicktype-core/dist/language/Python");

pythonOptions.pythonOptions.justTypes = new BooleanOption(
"JustTypes",
null,
true
);

11 changes: 11 additions & 0 deletions src/commands/code-binding/languages/swift.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const {
BooleanOption,
} = require("quicktype-core/dist/RendererOptions");

const options = require("quicktype-core/dist/language/Swift");

options.swiftOptions.justTypes = new BooleanOption(
"JustTypes",
null,
true
);
12 changes: 12 additions & 0 deletions src/commands/code-binding/languages/typescript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const {
BooleanOption,
} = require("quicktype-core/dist/RendererOptions");

const typeScriptOptions = require("quicktype-core/dist/language/TypeScriptFlow");

typeScriptOptions.tsFlowOptions.justTypes = new BooleanOption(
"JustTypes",
null,
true
);

0 comments on commit ae9fcc9

Please sign in to comment.