Altinn / Altinn/app-frontend-react
Feil når man sender inn string fra array til validering
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
### Description of the bug
Gitt at du feks har et array kart med string-values koord og tekst som i eksempel. Disse sendes så inn til følgende validering errors = [
...(this.validateDataModelBindingsAny(ctx, 'wkt', ['string', 'array'])[0] || []),
...(this.validateDataModelBindingsAny(ctx, 'label', ['string'])[0] || [])
og feiler

### Steps To Reproduce
Se description
### Additional Information
_No response_
Contributor guide
Research direction
Start with the validateDataModelBindingsAny entry point and reproduce the validation described in the issue using an array map containing string values such as coordinates and text. Trace why passing the string and array type combinations produces the reported error; done means the described validation no longer fails incorrectly, with the relevant behavior covered by an appropriate test if one exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100