hoeyi / Ozym

A web-application for tracking personal finances. Built using Blazor, ASP.NET Core, and Entity Framework Core.
3 stars 0 forks source link

ModelAttribute create page fails when input contains scopes and values #235

Open hoeyi opened 11 months ago

hoeyi commented 11 months ago

Describe the bug

Saving a new ModelAttributeDto instance results in a bad request response when the new entry contains entries in AttriubteScopes and AttributeValues.

To Reproduce Steps to reproduce the behavior:

  1. Go to /attributes/create/~
  2. Enter the name and add an entry for scopes and an entry for values.
  3. Click 'Save'.
  4. Bad request response is received.

Expected behavior

The form should successfully save the entry, since the model is well-defined. Might be a type-mismatch with the ways classes are called and the API controller types defined.