Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

During validation in DefaultBodyModelValidator if the modelAccessor of a model throws, it is not handled. #1206

@sornaks

Description

@sornaks

In WebApi this was handled by a ignoring validation for a hand-picked set of types and ignoring thrown exceptions. Should we stick to the same list? (The list seem to have been updated whenever a user reported a specific type is throwing.) Should we adopt a better way of handling this?
One thought after discussing with @pranavkm - Should we add a [DoNotValidate] attribute which ignore validation for the particular property and its children?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions