Skip to content

Fix type conversion error when no validation error is present.#19

Open
celalemre wants to merge 1 commit intocloud66-oss:masterfrom
celalemre:fix-validate-type-cast-error
Open

Fix type conversion error when no validation error is present.#19
celalemre wants to merge 1 commit intocloud66-oss:masterfrom
celalemre:fix-validate-type-cast-error

Conversation

@celalemre
Copy link

If validation succeeds, you still get an error like "interface {} is []interface {}, not []map[string]interface {}", to fix this I did a type check on the variable jsArray and returned the expected result based on that.

If validation succeeds you get an error like "interface {} is []interface {}, not []map[string]interface {}", to fix this I did a type check on the variable jsArray and returned the expected result based on that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants