Skip to content

fix: create_topic returns only topic id to avoid deserialization errors#495

Merged
huacnlee merged 3 commits intomainfrom
fix/create-topic-return-id
Mar 25, 2026
Merged

fix: create_topic returns only topic id to avoid deserialization errors#495
huacnlee merged 3 commits intomainfrom
fix/create-topic-return-id

Conversation

@huacnlee
Copy link
Member

Summary

  • POST /v1/content/topics response may omit fields like license, causing missing field 'license' deserialization errors when mapping to OwnedTopic
  • Simplify create_topic to only parse item.id from the response, returning String instead of OwnedTopic
  • Updated across all bindings: Rust (async + blocking), Python (sync + async), Node.js, Java, C

Test plan

  • Run longbridge create-topic --type article ... and verify it returns the topic ID without deserialization errors

🤖 Generated with Claude Code

huacnlee and others added 2 commits March 25, 2026 20:23
The POST /v1/content/topics response may omit fields like `license`,
causing deserialization failures when mapping to OwnedTopic. Simplify
create_topic to only parse item.id from the response across all bindings
(Rust, blocking, Python sync/async, Node.js, Java, C).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@huacnlee huacnlee force-pushed the fix/create-topic-return-id branch from a5815c0 to 060b9a0 Compare March 25, 2026 12:27
@huacnlee huacnlee merged commit fb37a06 into main Mar 25, 2026
6 checks passed
@huacnlee huacnlee deleted the fix/create-topic-return-id branch March 25, 2026 12:29
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.

1 participant