Skip to content

override default operationIds generated by fastapi  #6754

Open
@darin-reify

Description

@darin-reify

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar request and didn't find it.
  • I searched the Prefect documentation for this feature.

Prefect Version

2.x

Describe the current behavior

Currently, fastapi auto-generates the operationIds for each route with a combination of route name, parameters, request method, etc. While descriptive, this leads to some really convoluted and unwieldy operationIds; especially when libraries use these operationIds to generalize calling into the API.

Describe the proposed behavior

Instead of the generic handling, fastapi provides a way to customize the operationIds it exposes. I would like to propose orion use this functionality to provide more useful operationIds and, thus, help support 3rd-party integration.

Example Use

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRelated the Prefect REST APIenhancementAn improvement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions