Skip to content

Possible re-think/design of the API response content types #12

@MattDrivenDev

Description

@MattDrivenDev

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:

  1. Use the FSharp.Data Json Type provider... but only internally for reading of the data (meaning we can drop the massive annoying record types).
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions