Skip to content

fix: accept null code and group_id in the custom field response - #22

Merged
mokevnin merged 2 commits into
mainfrom
fix/custom-field-nullable-response
Oct 6, 2026
Merged

mokevnin merged 2 commits into
mainfrom
fix/custom-field-nullable-response

Conversation

@mokevnin

@mokevnin mokevnin commented Oct 6, 2026

Copy link
Copy Markdown
Member

Живой amoCRM отдаёт null по code и group_id; не-nilable вариант CustomField их отвергал, и союз выбирал Problem. Поля помечены nilable в lib/rbi/sig, добавлен тест на живую форму ответа (падает без фикса).

Fixes #19

amoCRM answers custom_fields.get_by_id with explicit nulls for code and
group_id. The non-nilable CustomField variant rejected them, so the union
picked Problem and a successful response was read as an error.

Fixes #19
@mokevnin
mokevnin merged commit 87c1991 into main Oct 6, 2026
3 checks passed
@mokevnin
mokevnin deleted the fix/custom-field-nullable-response branch October 6, 2026 21:54
@github-actions github-actions Bot mentioned this pull request Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant