This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Tag Helpers: Change ValidationSummaryTagHelper
's property to ValidationSummary
type (enum
not a string
)
#1685
Comments
dougbu
changed the title
Tag Helpers: Enum properties should be typed as the Enum and not attempt any conversion
Tag Helpers: Change Jan 16, 2015
ValidationSummaryTagHelper
's property to ValidationSummary
type (enum
not a string
)
previous subject was "Tag Helpers: Enum properties should be typed as the Enum and not attempt any conversion". |
@DamianEdwards current helper what behaviour would you like for undefined |
dougbu
added a commit
that referenced
this issue
Jan 16, 2015
… enum - #1685 - update tests and samples to match - remove tests for case-insensitivity and invalid property values Note .cshtml author is responsible for adding `@using Microsoft.AspNet.Mvc.TagHelpers` - Microsoft.AspNet.Mvc.TagHelpers has no startup code and `MvcRazorHost` does not read `MvcOptions` anyhow
talked offline w/ @DamianEdwards:
|
dougbu
added a commit
that referenced
this issue
Jan 16, 2015
… enum - #1685 - move `ValidationSummary` type to the `Microsoft.AspNet.Mvc` namespace - update tests and samples to match - remove tests for case-insensitivity of `ValidationSummary` property values
dougbu
added a commit
that referenced
this issue
Jan 16, 2015
… enum - #1685 - move `ValidationSummary` type to the `Microsoft.AspNet.Mvc` namespace - update tests and samples to match - remove tests for case-insensitivity of `ValidationSummary` property values
dougbu
added a commit
that referenced
this issue
Jan 16, 2015
… enum - #1685 - move `ValidationSummary` type to the `Microsoft.AspNet.Mvc` namespace - update tests and samples to match - remove tests for case-insensitivity of `ValidationSummary` property values
Fixed via 9b2a9e3 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The MVC Tag Helpers include some properties that are enums, e.g. the
ValidationSummaryTagHelper
. Currently they are typed asstring
and attempt to convert the string to the appropriate enum value otherwise they throw. They should just be typed as the enum directly.The text was updated successfully, but these errors were encountered: