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

Improve integrations codegen #109

Open
daryllimyt opened this issue Apr 29, 2024 · 0 comments
Open

Improve integrations codegen #109

daryllimyt opened this issue Apr 29, 2024 · 0 comments
Assignees
Labels
engine enhancement New feature or request

Comments

@daryllimyt
Copy link
Contributor

daryllimyt commented Apr 29, 2024

Motivation

The current implementation isn't type-exhaustive

Benefits

  • More type-exhaustive according to JSON Schema + OAS
  • Instead of going pydantic -> zod, decoupling into an intermediate step to pydantic -> intermediate -> zod unlocks a lot of use cases:
    • Allows compiling integrations directly from public OpenAPI specs
    • Opens up future possibility of compiling integrations from other languages (though this would require generic/containerized runtimes)
  • Offload codegen logic

Possible solutions

Using a common language agnostic spec

Convert from pydantic --> some spec --> zod.

Options

Pydantic -> OpenAPI

OpenAPI -> Zod

@daryllimyt daryllimyt self-assigned this Apr 29, 2024
@daryllimyt daryllimyt added enhancement New feature or request engine labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant