-
Notifications
You must be signed in to change notification settings - Fork 242
Closed
Description
If you specify a route with an input value that includes an embedded struct, such as MessageInOut:
JSONInputValue: func() interface{} { return &fftypes.MessageInOut{} },
Then make swagger fails with:
--- FAIL: TestSwaggerYAML (0.01s)
server_test.go:339:
Error Trace: server_test.go:339
Error: Received unexpected error:
Get "http://127.0.0.1:49340/api/swagger.yaml": EOF
Test: TestSwaggerYAML
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x46abe1a]
Currently the only workaround appears to be manually defining the schema, ie with:
JSONInputSchema: func(ctx context.Context) string { return privateSendSchema },
Metadata
Metadata
Assignees
Labels
No labels