Skip to content

Fix required association fields - #229

Merged
nicolas-brousse merged 1 commit into
pantographe:mainfrom
Guflly:fix/association-required-fields
Aug 4, 2026
Merged

Fix required association fields#229
nicolas-brousse merged 1 commit into
pantographe:mainfrom
Guflly:fix/association-required-fields

Conversation

@Guflly

@Guflly Guflly commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Uses object_method_names when collecting validators, so required associations are detected for *_id and *_ids fields.

Adds coverage for belongs_to and has_many.

Closes #191

@nicolas-brousse

Copy link
Copy Markdown
Member

Hi @Guflly thanks for you contribution.

Tests are currently broken, I'll try to take time to fix this.

Could you update the Changelog?

@Guflly
Guflly force-pushed the fix/association-required-fields branch from 560375e to 2218ee5 Compare July 31, 2026 12:40
@Guflly

Guflly commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Added it under Unreleased.

@nicolas-brousse

Copy link
Copy Markdown
Member

@Guflly thanks, could you rebase to get the latest commit in main?

@Guflly
Guflly force-pushed the fix/association-required-fields branch from 2218ee5 to ef90e67 Compare July 31, 2026 14:24
@Guflly

Guflly commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto the latest main.

@nicolas-brousse
nicolas-brousse merged commit 95d69f7 into pantographe:main Aug 4, 2026
24 of 28 checks passed
@nicolas-brousse

Copy link
Copy Markdown
Member

Thank you for your contribution

@nicolas-brousse

Copy link
Copy Markdown
Member

This change has been published under 0.3.1

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.

Make FieldComponent use #object_method_names for #required?

2 participants