File tree Expand file tree Collapse file tree 6 files changed +78
-0
lines changed
src/commands/code-binding/languages Expand file tree Collapse file tree 6 files changed +78
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "cfn-resource-actions.stackName" : " serverlessrepo-evb-local"
3
+ }
Original file line number Diff line number Diff line change
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
+ ) ;
Original file line number Diff line number Diff line change
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
+ ) ;
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
+ ) ;
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments