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.
3. What did you see instead (Required)
The wrong type annotations
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)
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.
3. What did you see instead (Required)
The wrong type annotations
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