-
Notifications
You must be signed in to change notification settings - Fork 155
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
protocol DummyProtocol:
schema HasLambdaWithProtocol:
lambda_with_protocol: (DummyProtocol)
kcl doc generate
2. What did you expect to see? (Required)
Generated documentation
3. What did you see instead (Required)
panic: unexpected KCL type: (DummyProtocol) -> any
goroutine 1 [running]:
kcl-lang.io/kcl-go/pkg/tools/gen.GetKclOpenAPIType({0x105ce5858, 0x1}, 0x140007e3560, 0x1)
kcl-lang.io/kcl-go@v0.11.3/pkg/tools/gen/genopenapi.go:602 +0xc94
kcl-lang.io/kcl-go/pkg/tools/gen.GetKclOpenAPIType({0x105ce5858, 0x1}, 0x140007e3200, 0x0)
kcl-lang.io/kcl-go@v0.11.3/pkg/tools/gen/genopenapi.go:532 +0xccc
kcl-lang.io/kpm/pkg/api.(*KclPackage).ExportSwaggerV2Spec(0x14000132040)
kcl-lang.io/kpm@v0.11.3/pkg/api/kpm_pkg.go:273 +0x1f4
kcl-lang.io/cli/cmd/kcl/commands.NewDocGenerateCmd.func1(0x1400023cc00?, {0x105723f1d?, 0x4?, 0x105723de9?})
kcl-lang.io/cli/cmd/kcl/commands/doc.go:72 +0xbc
github.com/spf13/cobra.(*Command).execute(0x14000231208, {0x1081018e0, 0x0, 0x0})
github.com/spf13/cobra@v1.9.1/command.go:1015 +0x7d4
github.com/spf13/cobra.(*Command).ExecuteC(0x140004d0f08)
github.com/spf13/cobra@v1.9.1/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.9.1/command.go:1071
main.main()
kcl-lang.io/cli/cmd/kcl/main.go:14 +0x3c
4. What is your KCL components version? (Required)
$ kcl --version
kcl version v0.11.3Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request