X Tutup
Skip to content

Embed runtime code into generated boilerplate #20

@deepmap-marcinr

Description

@deepmap-marcinr

We currently have generic handlers for parameters in the runtime package. These use either reflection or the swagger spec to generically handle any parameter.

A much better, though more difficult approach would be to generate the specific code to marshal and unmarshal each parameter from a query. We know the exact style, format and content for each parameter at generation time, so we only need a subset of the generic code to handle each, and that could be embedded without any conditional type logic where it's used.

The thought of the template code to do this, though, makes me shake with fear.

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

      X Tutup