Skip to content

Extract required role and state from API spec #58

@robin-nitrokey

Description

@robin-nitrokey

The API spec defines the required role and system state for an API call, e. g.:

x-annotation-role:
- Operator
x-annotation-state:
- Operational

Currently, there is no way to access this data programmatically. Therefore we to duplicate this information in the code:

state=State.OPERATIONAL,
roles=[Role.OPERATOR],

Ideally, we would extract the information from the API spec, either using the OpenAPI generator or manually, and re-use in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions