Skip to content

Recurse when calculating whether an init param is required #30

Closed
@czechboy0

Description

@czechboy0

Having even one optional header means we have to explicitly provide them when constructing a response - that's not great.

For example:

return .ok(.init(body: .json(.init(foo: "bar"))))

Now, even when we don't want to provide any headers, we'll have to provide the param.

This should only happen when there is at least one required header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugFeature doesn't work as expected.size/SSmall task. (A couple of hours of work.)🆕 semver/minorAdds new public API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions