kcl-lang / cli

The KCL Command Line Interface (CLI).
https://kcl-lang.io
Apache License 2.0
19 stars 14 forks source link

kcl import do not recognize jsnoschema statements #139

Closed soubinan closed 2 months ago

soubinan commented 2 months ago

Bug Report

1. Minimal reproduce step (Required)

  1. Download the BigIP F5 AS3 jsonschema
    curl -Ls https://raw.githubusercontent.com/F5Networks/f5-appsvcs-extension/main/schema/3.50.0/as3-schema.json -o /tmp/as3-schema.json
  2. try to import the jsonschema
    kcl import -m jsonschema /tmp/as3-schema.json

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

we should have the as3_schema.k file containing the jsonschema converted into KCL

3. What did you see instead (Required)

Many errors about not recognized jsonschema statements

image image image image image image

The base schema is http://json-schema.org/draft-07/schema#

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

$ kcl -v
kcl version 0.10.0-beta.1