jkone27 / jkone27/fsharp-integration-tests

TRIAGE: Support string and obj when return type is not known but client has to deserialize as T (?)

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
bug triage
Dominant language
F#
Stars
46
Forks
2
PR merge metrics
No merged PRs in 30d

Description

seems string or obj is not supported if the api client requires to deserialize as T, so maybe there should be some fallback strategy for it?

```fsharp

[]
type SomeType = { Test : string }

test_ce {
GETJ "/some/client/expecting/some-type" """{ "Test" : "hello" }"""
}
```

maybe this overload should work for GETJ_STR ?
```fsharp
GETJ_STR "/some/client/expecting/some-type" """{ "Test" : "hello" }""" // same as |> R_OK "application/json"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.