Open jstrachan opened 4 months ago
when generating a pkl file from a JSON schema file it tends to use the module "Jsonschema"
$ pkl eval package://pkg.pkl-lang.org/pkl-pantry/org.json_schema.contrib@1.0.0#/generate.pkl -m . -p source="jsonschema.json" Jsonschema.pkl
which includes the pkl...
module Jsonschema ...
it would be nice to be able to pass in the module name which is used to generate the pkl module and the name of the file
module
e.g.
$ pkl eval package://pkg.pkl-lang.org/pkl-pantry/org.json_schema.contrib@1.0.0#/generate.pkl -m . -p source="jsonschema.json" -p module="mything" mything.pkl $ cat mything.pkl module mything ...
I noticed its defaulting the module name to the last part of the filename; so a workaround for now is to rename the last part of the path from jsonschema
jsonschema
when generating a pkl file from a JSON schema file it tends to use the module "Jsonschema"
which includes the pkl...
it would be nice to be able to pass in the module name which is used to generate the pkl
module
and the name of the filee.g.