Aspnetcore.docs: `author` is null

Created on 3 Nov 2019  ยท  4Comments  ยท  Source: dotnet/AspNetCore.Docs

In your sample app author is null, means doesn't get bound.
Shouldn't it get bound?

Calling: http://localhost:xxxx/api/boundAuthors/get/1
author is null:

// GET: api/boundauthors/get/1
        #region demo2
        [HttpGet("get/{authorId}")]
        public IActionResult Get(Author author)
        {
            return Ok(author);
        }
        #endregion


Document Details

โš  Do not edit this section. It is required for docs.microsoft.com โžŸ GitHub issue linking.

Not Triaged Source - Docs.ms

Most helpful comment

Oh ... ok. I'll relink the sample tracking issue to ~that one~ both issues.

I presume that it's a P2 doc bug because it's one of the topics that doesn't receive nearly as much traffic as the others, and we're ๐Ÿƒ๐Ÿ˜… right now with high priority work.

All 4 comments

@Rick-Anderson On a broader point, this sample is one of the lingering _1.0 sample apps_ remaining ๐Ÿคฆโ€โ™‚. It's on the list ... https://github.com/aspnet/AspNetCore.Docs/issues/5495.

I'm not sure if this is something that can be addressed using the existing sample. Yes, let's leave it open just in case the behavior can be addressed without updating the sample.

If it turns out that this can't be addressed, then we can close this as a dup of the sample update tracking issue (#5495).

EDIT I'll make a cross-link on the sample update tracking issue to this for visibility.

Oh ... ok. I'll relink the sample tracking issue to ~that one~ both issues.

I presume that it's a P2 doc bug because it's one of the topics that doesn't receive nearly as much traffic as the others, and we're ๐Ÿƒ๐Ÿ˜… right now with high priority work.

Was this page helpful?
0 / 5 - 0 ratings