Skip to content

Add model in ValidationExceptions#837

Merged
DarkSide666 merged 2 commits intodevelopfrom
feature/model-in-exceptions
Mar 3, 2021
Merged

Add model in ValidationExceptions#837
DarkSide666 merged 2 commits intodevelopfrom
feature/model-in-exceptions

Conversation

@DarkSide666
Copy link
Copy Markdown
Member

No description provided.

@DarkSide666 DarkSide666 requested a review from mvorisek March 3, 2021 13:31
@DarkSide666 DarkSide666 added the RTM label Mar 3, 2021
@mvorisek
Copy link
Copy Markdown
Member

mvorisek commented Mar 3, 2021

shouldn't we make the model parameter required then?

@DarkSide666
Copy link
Copy Markdown
Member Author

DarkSide666 commented Mar 3, 2021

I didn't want to make some breaking changes. Theoretically field can exist without model. So I think this PR is good as it is.

Also theoretically possible that fields there could be from multiple models, because first argument can be array of fields=>errors.

@DarkSide666 DarkSide666 closed this Mar 3, 2021
@DarkSide666 DarkSide666 reopened this Mar 3, 2021
@DarkSide666 DarkSide666 merged commit 3b4396f into develop Mar 3, 2021
@DarkSide666 DarkSide666 deleted the feature/model-in-exceptions branch March 3, 2021 19:26
@mvorisek mvorisek removed their request for review March 3, 2021 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants