You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.
Minor codegen cleanups throughout (small style and simplification changes in many generated files: e.g. inlined returns, header generator version updates).