Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Update article/sample to not bind `Movie` with the prefix "Movie"

Open Beginner friendly
#38,016 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
documentation

Research direction

Open aspnetcore/mvc/models/validation.md and find the Movie sample that binds with the "Movie" prefix. Read the linked discussion for the reason behind the change, then update the article sample so ClearValidationState and TryValidateModel can use nameof instead of magic strings. Done when the sample no longer binds with that prefix and the guidance supports those nameof calls.

Written by the indexing model from the issue text.

Description

aspnet-core/svc doc-enhancement mvc/subsvc Pri2
Description

This will allow use of nameof for ClearValidationState and TryValidateModel. As stands, these must be used with magic strings.

Cross-ref: https://github.com/dotnet/AspNetCore.Docs/pull/37880#discussion_r4378904909

Page URL

https://learn.microsoft.com/en-us/aspnet/core/mvc/models/validation?view=aspnetcore-10.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/models/validation.md

Document ID

615db388-a244-41f7-21b5-a4085d9ed479

Platform Id

2b607790-2257-7f9a-1829-f2a2aa02cd01

Article author

@guardrex

Metadata
  • ID: 0156ffc3-47ac-d5da-fbc2-9ff5018b071b
  • PlatformId: 2b607790-2257-7f9a-1829-f2a2aa02cd01
  • Service: aspnet-core
  • Sub-service: mvc

Related Issues

Dominant language
C#
Stars
13.1k
Forks
24.5k
Avg merge
3d 5h
Merged PRs (30d)
171

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/AspNetCore.Docs

All issues in dotnet/AspNetCore.Docs

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.