ComputePods interface generation design
Once the description of an interface has been loaded, the interface generator tool uses Jinja2 templates to generate various interface code files.
At the moment the interface generator generates the follow types of code:
- JSON type definition in Python pydantic format using datamodel-code-generator
Consider using the companion fastapi-code-generator
-
JSON example data in Python format
-
JSON type definition in JavaScript formatted using AJV
-
JSON example data in JavaScript format
-
HTTP routes mocked in JavaScript using Mock Service Workers
-
HTTP mount points expressed as Mithril mixin components.