Skip to content

Any ideas how to handle permissions? See details #239

Description

@amankkg

We have a permission system in our backend done via enum per each endpoint. I'd like to somehow automate such logic.

One way of doing so if swagger will have enum string as a note to an endpoint like this

image

Is there a way to add that endpoint as TS literal type to a resulting class or method?
Or, maybe there are other ways to achieve a similar outcome?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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