@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.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 ? (() => {