Daniel G. Taylor

Results 336 comments of Daniel G. Taylor
trafficstars

@superstas this is an interesting problem you ran into! First, you are very close to the fix. I think something like this should work: ```go s.Enum = []interface{}{string(NameTypeFoo), string(NameTypeBar)} ```...

@nunoo do you mean these lines? https://github.com/danielgtaylor/huma/blob/main/huma.go#L487-L491. This happens after the handler has already returned the response struct, so there's no way to pass the error back to the handler....

@nunoo do you have a way to reproduce this issue? I can't seem to trigger the panic. I'v modified the greet example like this: ```go package main import ( "context"...

This should also now be fixed in #650

@ashishb thanks! I'm glad you like it :smile: What are you hoping to do with your CLI? If you use the `humacli` package you can easily add extra commands, for...

@ashishb did you read the linked docs? I think they will show you how to do what you want. Let me know if you have specific questions!

@ashishb you can use the custom commands docs I linked to if you want CLI commands for the server itself. Here's a modified hello world example: ```go package main import...

Just like #503 I think this bug will need to be opened up with Stoplight Elements: https://github.com/stoplightio/elements. Once fixed there we can update the version used by Huma.

@matrixik this is handled by Stoplight Elements, which renders the documentation. You could try asking or opening an issue in https://github.com/stoplightio/elements. If that doesn't wind up working for you, check...

@birukbelay Huma v1 actually had some basic GraphQL support built-in, but it was difficult to maintain and rather complex code. I'm happy to have someone build a library on top...