Skip to content

Optional fields are not typed as optional #261

Description

@nikhil-achilles

I’m noticing that many fields are named optional and/or documented as optional, but are not typed as optional in the generated types. Is this expected behavior? If so, what is the intended “empty” or default value for these fields?

Example: https://github.com/authzed/authzed-node/blob/main/src/authzedapi/authzed/api/v1/permission_service.ts#L111

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