Skip to content

Fix JSON casing for catalogRef to match camelCase convention#445

Merged
cutecatfann merged 1 commit intomainfrom
source_updates
Mar 16, 2026
Merged

Fix JSON casing for catalogRef to match camelCase convention#445
cutecatfann merged 1 commit intomainfrom
source_updates

Conversation

@cutecatfann
Copy link
Copy Markdown
Contributor

What I did

  • Changes the JSON tag on workingset.Server.CatalogRef from catalog_ref to catalogRef to match the camelCase convention used throughout the JSON response (like displayName, longLived, allowHosts in the nested snapshot.server)
  • Leaves the db.Server JSON tag as catalog_ref since that controls SQLite storage serialization; changing it would break deserialization of already-persisted data
  • YAML tag remains catalog_ref (snake_case is standard YAML convention)

Follow-up to #441. Austin flagged that the new field was snake_case while the rest of the JSON response uses camelCase. The NewFromDb/ToDb mapping between db and workingset layers uses Go field names, so the JSON tag mismatch between layers is safe.

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@cutecatfann cutecatfann requested a review from a team as a code owner March 16, 2026 17:06
@cutecatfann cutecatfann merged commit 64e5b0f into main Mar 16, 2026
8 checks passed
@cutecatfann cutecatfann deleted the source_updates branch March 16, 2026 18:59
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