You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will make the API much easier to understand and use for front-end
Implementation
Make a new model class for the APIs and map from the abstract lookup type
Maybe add test to ensure these two match, so that if the lookup type is updated, the outer facing class is updated as well
The content you are editing has changed. Please copy your edits and refresh the page.
As an added bonus, this will make PATCH operations much cleaner since one does not have to know the actual index of the content you want to change. Do note though, that we want to have this content on transmissions as well, where there will be different validation rules, which might affect nullability of some of these fields.
… type (#905)
#891
Changes content on the API layers to be an object with all content types
as properties.
Required props are non-nullable, the rest is nullable.
Validators are re-written to use reflection, all DialogContentTypes are
looked up on the incomming DTOs
Tests have been added to ensure that ContentDTOs prop. count matches
those of DialogContentTypes
There is some weird naming/mapping stuff when it comes to the search
mapping, but it works OK, see comments 🙈
Co-authored-by: Knut Haug <knut.espen.haug@digdir.no>
Description
Instead of
Content
being a list:Content
as an object with named properties for each content type:This will make the API much easier to understand and use for front-end
Implementation
Make a new model class for the APIs and map from the abstract lookup type
Maybe add test to ensure these two match, so that if the lookup type is updated, the outer facing class is updated as well
Tasks
Threat modelling
Acceptance criteria
GIVEN ...
WHEN ....
THEN ...
GIVEN ...
WHEN ....
THEN ...
The text was updated successfully, but these errors were encountered: