Skip to content

v9.1.0 - #136

Merged
kasjankotyniarsp merged 8 commits into
masterfrom
9.1.0
Aug 21, 2026
Merged

v9.1.0#136
kasjankotyniarsp merged 8 commits into
masterfrom
9.1.0

Conversation

@p-zielinski

@p-zielinski p-zielinski commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Minor release 9.1.0 for the no_effect fix plus the accumulated additive OpenAPI sync.
  • Adds the missing NoEffect (no_effect) member to the skipped-redeemable KeyEnum. Previously Key became null through SafeEnumConverter when the API skipped a redeemable with no discount effect.
  • Documents the full sync in the README 9.1.0 changelog: STANDALONE, ADD_SAME_ITEMS, segment UpdatedAt, product quantity limits, customer asset fields and the CreatePublicationCampaign.Count maximum increase from 20 to 50.
  • Generated directly from the prepared OpenAPI definition; no property-order compatibility rewrite is applied.
  • Docker test execution now propagates the actual dotnet test exit code.

Supersedes #135 (the earlier 9.0.3 patch attempt, now closed).
OpenAPI: voucherifyio/voucherify-openapi#1346 · tag sdk-dotnet-9.1.0

Public surface change worth reviewing

Constructor parameter order changes on ApplicableTo, InapplicableTo, SegmentsCreateResponseBody and SegmentsGetResponseBody because new optional properties occur before previously trailing properties in the definition.

  • Positional calls to ApplicableTo / InapplicableTo can silently bind trailing arguments to new quantity-limit parameters.
  • Positional calls to SegmentsCreateResponseBody / SegmentsGetResponseBody usually fail at compile time because updatedAt is inserted before type.
  • Named arguments, object initializers and JSON deserialization are unaffected. JSON member names are unchanged.

9.1.0 follows this SDK's existing release practice: 8.0.18.1.0 was a minor release that similarly inserted constructor parameters in 82 models. This release documents the migration explicitly.

Test plan

  • Docker suite: npm run test-dotnet-sdk from the OpenAPI repository — 37 tests, pass
  • KeyEnum.NoEffect present and maps from "no_effect"
  • Version 9.1.0 consistent across csproj, nuspec, Configuration and README
  • Changelog documents constructor-order migration and the Count limit increase
  • Optional live smoke test for validations/redemptions with redeemables_no_effect_rule=SKIP

Known issue (deliberately out of scope)

The SDK retains four misspelled management webhook enum members inherited from the source OpenAPI definition. This is not a regression: 9.0.2 shipped the same members.

Correcting the spelling would rename public enum members. It will therefore be handled across SDKs through additive aliases in a future alignment, or as part of a major release.

Bump to minor for OpenAPI sync scope; expand changelog beyond NoEffect.
Append additive fields after the 9.0.2 constructor arguments, cover old positional calls, and make Docker propagate the dotnet test exit code.
Drop the property reordering that kept model constructors positionally
compatible with 9.0.2. It only shifted parameter order, never the JSON
contract, and the project has shipped the same generator churn in past
minors. The changelog now states that positional constructor calls need
updating, and the test asserting the old order is gone.
Spell out that ApplicableTo/InapplicableTo positional calls can
silently misbind, while Segments* usually fail at compile time.
Named arguments, initializers and JSON deserialization stay safe.
@p-zielinski p-zielinski self-assigned this Aug 11, 2026
kasjankotyniarsp and others added 2 commits August 20, 2026 15:05
Campaign voucher generation is async, so a 2–3s sleep raced and left tests indexing an empty list.

Co-authored-by: Cursor <cursoragent@cursor.com>
Updated readme to contain information on what changed in the tests

@kasjankotyniarsp kasjankotyniarsp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readme looks ok. Flanky tests updated.

Update readme and nuspec release notes: 2026-08-20 date, constructor
migration note, test polling and Docker exit-code propagation.
@kasjankotyniarsp
kasjankotyniarsp merged commit ea88116 into master Aug 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants