Skip to content

Error with BadRequest(ModelState) #212

@ZajacPiotr98

Description

@ZajacPiotr98

When I try to return BadRequest with ModelStateDictionary using your package, app crashes. I think, app does infinitive loop in:

public static Task BadRequest(this HttpContext context, ModelStateDictionary modelState)
        {
            if (modelState == null)
            {
                throw new ArgumentNullException(nameof(modelState));
            }
            return context.BadRequest(modelState);
        }

It called BadRequest(ModelStateDictionary), so itself

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions