Skip to content

Allowing optional bodies instead of forcing required=true #3162

@ScepticMatt

Description

@ScepticMatt

We cannot have optional bodies like using Type.Optional<...> or Type.Undefined in TypeBox because fets hardcodes/overwrites it to required = true

https://github.com/ardatan/feTS/blob/5fa978026f5db6ec91ab755e4d47cb06b2e73e48/packages/fets/src/plugins/openapi.ts#L193C9-L202C10

what is the reason you are doing this? Optional bodies is a valid use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions