Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(type-safe-api): faster code generation for python runtime #859

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

cogwirrel
Copy link
Member

Move python runtime project to new codegen.

Includes a few generic adjustments to the generator too:

  • Add mockData to properties in the codegen data for use as example values in the python runtime markdown docs
  • Support for ejs include to reference other partial templates
  • Ensure the link property is set for array/dictionary models and properties so that templates can reference child items

Note that I put the logic to generate the pydantic type in a template rather than as part of the generator, since pydantic feels too implementation specific to live in the generator data.

Copy link

nx-cloud bot commented Oct 17, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 3b9a057. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@cogwirrel cogwirrel merged commit a61c700 into mainline Oct 17, 2024
4 checks passed
@cogwirrel cogwirrel deleted the feat/py-runtime-gen4 branch October 17, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants