Commit 21e485a
authored
feat(jsii-spec): Model parameter optionality (#432)
Method `Parameters`, `Properties` and method return types
now carry an `optional` flag that indicates whether they are
optional or required, and the `TypeReference#optional` field
was removed.
BREAKING CHANGE: JSII assemblies generated by older versions of the tool
will fail loading with this new version, and vice-versa. Re-compile your
projects in order to fix this.
Fixes #296
Fixes #4141 parent fe942b3 commit 21e485a
File tree
360 files changed
+5703
-5794
lines changed- packages
- codemaker
- jsii-calc-base-of-base/test
- jsii-calc-base/test
- jsii-calc-bundled
- jsii-calc-lib/test
- jsii-calc/test
- jsii-diff
- lib
- test
- jsii-dotnet-generator/src
- Amazon.JSII.Generator.UnitTests
- Class
- DocComment
- Enum
- Interface
- Amazon.JSII.Generator
- Class
- DocComment
- Enum
- Interface
- jsii-dotnet-jsonmodel
- src
- Amazon.JSII.JsonModel.UnitTests
- Spec
- Amazon.JSII.JsonModel
- Converters
- Spec
- jsii-dotnet-runtime-test
- test
- Amazon.JSII.Runtime.IntegrationTests
- jsii-dotnet-runtime
- src
- Amazon.JSII.Runtime.UnitTests
- Deputy/Converters
- Amazon.JSII.Runtime
- Deputy
- Services
- Converters
- jsii-java-runtime
- jsii-kernel
- lib
- test
- jsii-pacmak
- lib
- targets
- test
- expected.jsii-calc-base
- dotnet/Amazon.JSII.Tests.CalculatorPackageId.BasePackageId
- Amazon/JSII/Tests/CalculatorNamespace/BaseNamespace
- java/src/main/java/software/amazon/jsii/tests/calculator/base
- expected.jsii-calc-lib/dotnet/Amazon.JSII.Tests.CalculatorPackageId.LibPackageId
- Amazon/JSII/Tests/CalculatorNamespace/LibNamespace
- expected.jsii-calc
- dotnet/Amazon.JSII.Tests.CalculatorPackageId
- Amazon/JSII/Tests/CalculatorNamespace
- DerivedClassHasNoProperties
- InterfaceInNamespaceIncludesClasses
- InterfaceInNamespaceOnlyInterface
- composition
- CompositeOperation
- java/src/main/java/software/amazon/jsii/tests/calculator
- python/src/jsii_calc
- sphinx
- jsii-reflect
- lib
- test
- jsii-ruby-runtime
- jsii-runtime
- lib
- jsii-spec
- lib
- test
- jsii
- lib
- test
- negatives
- oo-ascii-tree
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
360 files changed
+5703
-5794
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
94 | 95 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 105 | + | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
| |||
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
132 | 131 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| |||
0 commit comments