Skip to content

Fix plugin catalog array parsing error#96

Merged
JoshuaAFerguson merged 1 commit into
mainfrom
claude/fix-plugin-array-parsing-01KEpyzHvCuoje1DzWbsYDAd
Nov 18, 2025
Merged

Fix plugin catalog array parsing error#96
JoshuaAFerguson merged 1 commit into
mainfrom
claude/fix-plugin-array-parsing-01KEpyzHvCuoje1DzWbsYDAd

Conversation

@JoshuaAFerguson

Copy link
Copy Markdown
Member

Replace json.Marshal() with pq.Array() for tags field when inserting plugins and templates into catalog tables. JSON format ["tag1","tag2"] is not valid for PostgreSQL TEXT[] columns - they require {"tag1","tag2"} format which pq.Array() provides.

This fixes the "malformed array literal" errors during catalog sync.

Replace json.Marshal() with pq.Array() for tags field when inserting
plugins and templates into catalog tables. JSON format ["tag1","tag2"]
is not valid for PostgreSQL TEXT[] columns - they require {"tag1","tag2"}
format which pq.Array() provides.

This fixes the "malformed array literal" errors during catalog sync.
@JoshuaAFerguson JoshuaAFerguson merged commit 0636c28 into main Nov 18, 2025
8 of 23 checks passed
@JoshuaAFerguson JoshuaAFerguson deleted the claude/fix-plugin-array-parsing-01KEpyzHvCuoje1DzWbsYDAd branch November 18, 2025 05:03
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