kcl-lang / kcl-go

KCL Go SDK
https://pkg.go.dev/kcl-lang.io/kcl-go@main
Apache License 2.0
52 stars 26 forks source link

Bug: Error Json schema import output for Github workflow. #200

Closed Peefy closed 10 months ago

Peefy commented 11 months ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

The input json schema config: https://github.com/kcl-lang/modules/blob/main/github-workflow/jsonschema/github-workflow.json

2. What did you expect to see? (Required)

The right union type annotation instead of wrong type annotation. Besides, this issue can be aligned with the implementation in the kcl-lang/kcl-openapi repo.

image

3. What did you see instead (Required)

The wrong type annotations

image

image

image

It should be noted that the errors encountered may go far beyond those mentioned in the issue, and the input and output results should be carefully checked.

4. What is your KCL components version? (Required)

kcl-go v0.7.1