dizzy.generators.linkml_runner¶
dizzy.generators.linkml_runner
¶
LinkML runner — shells out to gen-pydantic / gen-sqla / gen-rust / gen-typescript / gen-json-schema.
run_linkml_pydantic(def_file, output_file)
¶
Run gen-pydantic on def_file and write the result to output_file.
Source code in dizzy/src/dizzy/generators/linkml_runner.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
run_linkml_sqla(def_file, output_file)
¶
Run gen-sqla on def_file and write the result to output_file.
Source code in dizzy/src/dizzy/generators/linkml_runner.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
run_linkml_json_schema(def_file, output_file)
¶
Run gen-json-schema on def_file and write the result to output_file.
Every class in the schema lands under $defs; validate a single payload with
{"$ref": "#/$defs/<ClassName>"} against the emitted document.
Source code in dizzy/src/dizzy/generators/linkml_runner.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
run_linkml_rust(def_file, output_file)
¶
Run gen-rust (file mode, serde) on def_file and write the result to output_file.
Source code in dizzy/src/dizzy/generators/linkml_runner.py
62 63 64 65 66 67 68 69 70 71 72 73 74 | |
run_linkml_typescript(def_file, output_file)
¶
Run gen-typescript on def_file and write the result to output_file.
Source code in dizzy/src/dizzy/generators/linkml_runner.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |