@kubb/adapter-oas 5.0.0-alpha.69 → 5.0.0-alpha.70
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/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/parser.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -1215,9 +1215,11 @@ function createSchemaParser(ctx) {
|
|
|
1215
1215
|
});
|
|
1216
1216
|
}
|
|
1217
1217
|
const unionMembers = [...schema.oneOf ?? [], ...schema.anyOf ?? []];
|
|
1218
|
+
const strategy = schema.oneOf ? "one" : "any";
|
|
1218
1219
|
const unionBase = {
|
|
1219
1220
|
...buildSchemaNode(schema, name, nullable, defaultValue),
|
|
1220
|
-
discriminatorPropertyName: isDiscriminator(schema) ? schema.discriminator.propertyName : void 0
|
|
1221
|
+
discriminatorPropertyName: isDiscriminator(schema) ? schema.discriminator.propertyName : void 0,
|
|
1222
|
+
strategy
|
|
1221
1223
|
};
|
|
1222
1224
|
const discriminator = isDiscriminator(schema) ? schema.discriminator : void 0;
|
|
1223
1225
|
const sharedPropertiesNode = schema.properties ? (() => {
|