danielgtaylor / danielgtaylor/huma

How to stop generating schemas for request args (i.e. `...Body`)

Open
#956 0 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
Go
Stars
4.4k
Forks
285
Avg merge
40m
Merged PRs (30d)
1

Description

I noticed that Huma generates schemas for my request arguments in the form of `${my_args_struct_name}Body` and they are thus displayed prominently in the API docs.

Is there a way to stop generating schemas for request args so that they are not `$ref`'erenced but embedded directly in the OpenAPI spec instead?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files, tests, or entry points are named in the issue. Start by locating Huma's request-argument schema generation and the OpenAPI output that creates `${my_args_struct_name}Body` references; done means request argument schemas can be embedded directly rather than exposed as separate `$ref` components, with the generated specification and relevant tests confirming the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, openapi
Domain
api, documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.