Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseForm not inheritance Hash #34

Merged
merged 7 commits into from
Jul 9, 2024
Merged

BaseForm not inheritance Hash #34

merged 7 commits into from
Jul 9, 2024

Conversation

ermolaev
Copy link
Contributor

@ermolaev ermolaev commented Jul 4, 2024

No description provided.

optional(:bookmarks).array(Dry.Types::Instance(BookmarkForm))
optional(:personal_info).value(Dry.Types::Instance(PersonalInfoForm))
optional(:bookmarks).array(BookmarkForm::CURRENT_CONTRACT.schema)
optional(:personal_info).value(PersonalInfoForm::CURRENT_CONTRACT.schema)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Может определить метод def self.schema = CURRENT_CONTRACT.schema, тогда optional(:bookmarks).array(BookmarkForm.schema)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

переделал, можно все также использовать объект формы 2989726

@ermolaev ermolaev merged commit 2749691 into master Jul 9, 2024
2 checks passed
@ermolaev ermolaev deleted the not-hash branch July 12, 2024 10:22
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.

3 participants