@tim-smart/openapi-gen 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.js +2 -0
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -30191,6 +30191,8 @@ var make63 = gen2(function* () {
|
|
|
30191
30191
|
if (sources.length === 0) return none2();
|
|
30192
30192
|
else if (sources.length === 1) return some2(sources[0]);
|
|
30193
30193
|
return some2(`${S}.Union(${sources.join(", ")})`);
|
|
30194
|
+
} else if ("const" in schema) {
|
|
30195
|
+
return some2(`${S}.Literal(${JSON.stringify(schema.const)})`);
|
|
30194
30196
|
}
|
|
30195
30197
|
return none2();
|
|
30196
30198
|
};
|