@tim-smart/openapi-gen 0.3.5 → 0.3.6
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 +1 -1
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -29602,7 +29602,7 @@ var make65 = gen2(function* () {
|
|
|
29602
29602
|
};
|
|
29603
29603
|
const applyAnnotations = (S, options3) => (source) => {
|
|
29604
29604
|
if (options3.isNullable && options3.default === null) {
|
|
29605
|
-
return `${S}.optionalWith(${source}, {
|
|
29605
|
+
return `${S}.optionalWith(${S}.NullOr(${source}), { default: () => null })`;
|
|
29606
29606
|
}
|
|
29607
29607
|
const defaultSource = options3.default !== void 0 && options3.default !== null ? `() => ${JSON.stringify(options3.default)} as const` : void 0;
|
|
29608
29608
|
if (options3.isOptional) {
|