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

Infer Pulumi schema from implementation of ComponentResource(s) #468

Open
Tracked by #15939
mikhailshilkov opened this issue Feb 18, 2025 · 0 comments · May be fixed by #498
Open
Tracked by #15939

Infer Pulumi schema from implementation of ComponentResource(s) #468

mikhailshilkov opened this issue Feb 18, 2025 · 0 comments · May be fixed by #498
Labels
area/sdks kind/enhancement Improvements or new features
Milestone

Comments

@mikhailshilkov
Copy link
Member

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

To simplify Component Provider authoring, we want to get rid of the requirement to author schema files manually. The idea is to provide utility functions that, when pointed at a C# project, can locate all classes that derive from ComponentResource and infer their schema with reflection. We want a C# function that accepts an assembly (calling assembly by default) and returns a JSON-serializable representation of the full Pulumi schema. It should work for multiple component resources located in the same project.

Component inputs and outputs are derived from the Args class properties and Output properties of the component. Auxiliary types must be supported.

A prototype of this feature is available in #453

Affected area/feature

Component Packages
Provider SDK

@mikhailshilkov mikhailshilkov added the kind/enhancement Improvements or new features label Feb 18, 2025
@pulumi-bot pulumi-bot added the needs-triage Needs attention from the triage team label Feb 18, 2025
@lunaris lunaris added area/sdks and removed needs-triage Needs attention from the triage team labels Feb 20, 2025
@lunaris lunaris added this to the 0.117 milestone Feb 20, 2025
@mikhailshilkov mikhailshilkov linked a pull request Feb 21, 2025 that will close this issue
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sdks kind/enhancement Improvements or new features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants