Skip to content

Adding a custom example for an operation's request body #253

Description

@morbiusdev

I am trying to integrate aide with Swagger into my project and found that I am able to use TransformOperation to customize the example response, using response_with. However I do not see a corresponding way in the existing API to add an example for the requestBody. The reasoning I would like this is that the default generated requestBody from the JSON Schema doesn't really correspond to actual expected values for some of the types. Would it be reasonable to add this functionality to the API?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions