-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating Dialog list fields with explicit NULL, returns 500 internal server error #1597
Comments
This applies to all lists, also when creating dialogs. |
… INTERNAL SERVER ERROR (#1602) <!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Setting `RespectNullableAnnotations = true` makes it so that explicit null on non-nullable list results in a 400 BAD REQUEST across the whole API. ```json { "type": "https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.1", "title": "One or more validation errors occurred.", "status": 400, "instance": "/api/v1/serviceowner/dialogs", "errors": { "searchTags": [ "The property or field 'searchTags' on type 'Digdir.Domain.Dialogporten.Application.Features.V1.ServiceOwner.Dialogs.Commands.Create.CreateDialogCommand' doesn't allow setting null values. Consider updating its nullability annotation. Path: $.searchTags | LineNumber: 169 | BytePositionInLine: 22." ] }, "traceId": "00-958361cdc8411eee6b3e7f32f19d1acc-119627bfbb3b75f6-01" } ``` ## Related Issue(s) - #1597 ## Verification - [x] **Your** code builds clean without any errors or warnings - [x] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable)
Test 1: Test 2: Setter Teststatus = Passed. |
Description
Setting any of these fiels to null gives 500 internal server error
Stack trace
Reproduction
Update Dialog with explicit null
The text was updated successfully, but these errors were encountered: