We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 203ccea commit 078347fCopy full SHA for 078347f
test/aidbox_sdk/generator/typescript_test.clj
@@ -73,8 +73,26 @@
73
:type "Meta"}))))
74
75
(testing "element with choices"
76
- ;; TODO
77
- ))
+ (is (= "value?: Reference | number;"
+ (gen.typescript/generate-property {:name "value",
78
+ :choices
79
+ [{:name "valueReference"
80
+ :base "Observation"
81
+ :array false
82
+ :required false
83
+ :value "Base.ResourceReference"
84
+ :type "Reference"
85
+ :choice-option true}
86
+ {:name "valueInteger"
87
88
89
90
+ :value "int"
91
+ :type "integer"
92
+ :choice-option true}],
93
+ :base "Observation",
94
+ :array false,
95
+ :required false})))))
96
97
(deftest test-generate-class
98
(testing "base"
0 commit comments