Skip to content

fix(API): Repo Sync Event errors field type #STRINGS-1074#756

Merged
jablan merged 2 commits intomasterfrom
1074-fix-repo-sync-event-errors-schema
Dec 20, 2024
Merged

fix(API): Repo Sync Event errors field type #STRINGS-1074#756
jablan merged 2 commits intomasterfrom
1074-fix-repo-sync-event-errors-schema

Conversation

@jablan
Copy link
Copy Markdown
Collaborator

@jablan jablan commented Dec 20, 2024

unfortunately, it seems that anyOf is not handled properly by our client builders.

ERROR: json: cannot unmarshal string into Go struct field RepoSyncEvent.errors of type phrase.RepoSyncEventErrorsInner

so, I simplified this part of schema to always expect just an array of strings. We'll make sure that the server also always sends simple strings.

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