Skip to content

Reuse RouteConfig in consuming application #88

@johanndev

Description

@johanndev

Hi!

First, thanks for this awesome library! :)

Is there any way to leverage the route configuration in the creation of http clients? My goal is to define the route only once (in the route config) and somehow generate client code that for example uses the fetch API to issue requests against a backend and validates the responses against the configured ZodSchema.

As it stands today, I have to manually create my http client classes in TS and repeat the information that I have already provided in the route config.

I guess what I'd like to have is something similar to creating TS clients from a OpenAPI spec.

How do you usually handle the creation of http client classes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions