Skip to content

Commit

Permalink
feat: handle custom input params
Browse files Browse the repository at this point in the history
  • Loading branch information
ross96D committed May 11, 2024
1 parent e089398 commit 00b662a
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 247 deletions.
4 changes: 4 additions & 0 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ type API interface {
Middlewares() Middlewares
}

type InputParamConverter interface {
HumaInputParamConvert([]byte) (any, error)
}

// Format represents a request / response format. It is used to marshal and
// unmarshal data.
type Format struct {
Expand Down
Loading

0 comments on commit 00b662a

Please sign in to comment.