Skip to content

[JSON Schema] support passing in a module name #31

@jstrachan

Description

@jstrachan

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

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
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions