Skip to content

OpenAPI emitter: expose setOperationId function to set and modify operations in other emitters #8576

@artsiommiksiuk

Description

@artsiommiksiuk

Clear and concise description of the problem

I wanted to workaround this issue:

#8511

And figured that I can't that easily programmatically set operationId on an operation and pass modified program to openapi emitter.

I can't apply decorators from emitter (no js api for this).
And openapi emitter doesn't expose setOperationId function, only getOperationId.

So, I'd like to either have an openAPI exposed function to setOperationId on an operation, modifying the program.
Or have a way to programmatically set decorators using compiler API.

Checklist

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions