@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.cjs
CHANGED
|
@@ -1241,9 +1241,11 @@ function createSchemaParser(ctx) {
|
|
|
1241
1241
|
});
|
|
1242
1242
|
}
|
|
1243
1243
|
const unionMembers = [...schema.oneOf ?? [], ...schema.anyOf ?? []];
|
|
1244
|
+
const strategy = schema.oneOf ? "one" : "any";
|
|
1244
1245
|
const unionBase = {
|
|
1245
1246
|
...buildSchemaNode(schema, name, nullable, defaultValue),
|
|
1246
|
-
discriminatorPropertyName: isDiscriminator(schema) ? schema.discriminator.propertyName : void 0
|
|
1247
|
+
discriminatorPropertyName: isDiscriminator(schema) ? schema.discriminator.propertyName : void 0,
|
|
1248
|
+
strategy
|
|
1247
1249
|
};
|
|
1248
1250
|
const discriminator = isDiscriminator(schema) ? schema.discriminator : void 0;
|
|
1249
1251
|
const sharedPropertiesNode = schema.properties ? (() => {
|