-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
Need to think carefully (sooner rather than later) about the response content (record) types. For example:
- Repository
- User
- Owner
- etc etc
I'd like to change the API output/content types to something more considered/structured - that helps give the client application code more semantics about the data as part of the types:
See here for more details on examples
There are two options as I see it:
- Use the FSharp.Data Json Type provider... but only internally for reading of the data (meaning we can drop the massive annoying record types).
- Lock/hide the massive annoying record types away as internal types.
In both cases, there will be some functions to convert over from the deserialized types - into the proper API content types which make better use of the F# type system.