Skip to content

Conversation

@winrid
Copy link
Contributor

@winrid winrid commented Nov 20, 2025

Release 0.3.0

Changes

  • Add ApiModelBase (lib/fastcomments-client/api_model_base.rb) that centralizes deserialization and hash/serialization helpers (to_s, to_body, _to_hash, _deserialize behaviour).
  • Refactor models to inherit from ApiModelBase (many model classes updated to < ApiModelBase) and remove duplicated implementations of _deserialize, to_s, to_body and _to_hash from individual model files to DRY up the codebase.
  • Simplify anyOf handling in multiple generated anyOf wrapper classes: return find_and_cast_into_type(...) directly instead of assigning temporary typed_data variable.
  • Change VoteResponse.status representation: replace the generated VoteResponseStatus model/anyOf with a plain String type; add enum validation for allowed status values ("success", "failed", "pending-verification"). Remove the VoteResponseStatus model and its docs.
  • Add approved boolean property to PublicComment and PublicCommentBase (openapi.json and generated docs/models updated); wire attribute into attribute_map, openapi_types, initializer, equality/hash and docs.
  • Require the new ApiModelBase from the main library file (lib/fastcomments-client.rb) and stop requiring removed VoteResponseStatus model.
  • Update many model files to reflect the generator changes (generator version header updates, inheritance change, small internal refactors) — e.g., AddDomainConfig200ResponseAnyOf, AddDomainConfigParams, AddPageAPIResponse, Aggregation* models, API* models, Block*/Unblock*, Comment*, FeedPost*, Public* models and many others.
  • Update generated specs: comment out auto-instantiation helper lines and update generator version notes in many spec files; various model spec files updated to reflect generator changes and removed generated helper objects.
  • Remove VoteResponseStatus documentation file (docs/VoteResponseStatus.md) and update README/docs table of models to remove that entry.
  • Update .openapi-generator/FILES to reflect added/removed generated files and added ApiModelBase.
  • Minor codegen cleanups throughout (small style and simplification changes in many generated files: e.g. inlined returns, header generator version updates).

Version Change

0.2.0 → 0.3.0

@winrid winrid merged commit 319721c into master Nov 20, 2025
@winrid winrid deleted the release-2025-11-20 branch November 20, 2025 23:16
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.

2 participants