Daniel G. Taylor

Results 359 comments of Daniel G. Taylor

@nunoo sorry, this isn't possible today. The code defaults to `false` in order to have fewer surprises for the user in case they send an invalid field (e.g. typo). You...

@kamal2311 If you are still calling `c.Next()` it will still route the request into Huma's handlers and process them. Do you have a quick example you can share that triggers...

@Blinkuu you can do this by manually adding the information into the OpenAPI since you have full direct access to it. For example: ```go // Create a new stdlib HTTP...

@Blinkuu you could maybe hack it together somehow but remember these routes will not have an associated operation in the middleware as that happens in the Huma layer. I think...

@ssoroka I think a middleware is the correct approach here, as you have mentioned you already do. You can capture and log the response, and replace the body as needed....

@srilman thanks for the issue! I believe this was done on purpose because Go can't use reflection to access private fields from other packages, so it would be inconsistent to...

Sorry I had merged the fix but with some more testing this is not working with the stdlib JSON marshaller and private embedded fields. I think we'll need to revisit...

@mvrahden nice find! This looks like a bug where it isn't treating it as a string value. Thanks for reporting :smile:

@nguyen0096 this isn't currently possible: 1. There is no way to link custom tags with custom validation logic right now. This is a feature we could consider adding or enabling...

@costela I'm curious if you have concrete examples where this would be needed. I'm envisioning this as either a one-time singleton setup per middleware or a one-time setup per operation....