Skip to content

Release 1.0.1

Choose a tag to compare

@winrid winrid released this 21 Nov 16:07
· 3 commits to master since this release
30f0da3
  • Remove large amounts of manually-written custom JSON serialization/deserialization code across many generated model files.
  • Replace direct calls to model_api_status.to(...) with the more consistent to(...) usage (standardized deserialization of APIStatus) across numerous response models, e.g.: model_api_create_user_badge_response.nim, model_api_get_comment_response.nim.
  • Fix array deserialization for several fields by iterating array items manually and constructing sequences instead of relying on a generic to(...) call. Affected deserializations include: GetEventLogResponse.events, GetFeedPostsResponse.feedPosts, GetPublicFeedPostsResponse.feedPosts, PublicFeedPostsResponse.feedPosts, GetSSOUsers200response.users (generator patterns), and PublicComment.children (optional children array).
  • Standardize JSON serialization calls to use % (JsonNode conversion) and to(...) consistently across models; removed duplicated or redundant manual field-handling in many model files.
  • Add proper conditional handling for optional arrays/objects during deserialization in several models (check for JArray before iterating, and for JNull before setting Option values) to make (de)serialization safer and consistent.
  • Reintroduce/ensure consistent default enum and to* implementations (no semantic changes) and add trailing newlines where missing across many model files (formatting/whitespace cleanup).
  • Minor model shape/type clarifications and field additions where generated types already expected Option[] or seq[] remained unchanged but had manual procs removed (examples: many types now rely on generated to/% behaviour for fields such as Table, seq, Option and JsonNode).
  • Several response variants that previously included custom anyOf deserialization debug/echo logic remain but had their trailing newline/formatting normalized (no functional change) (examples: many *200response and *200responseAnyOf files).