Skip to content

Commit aba61bb

Browse files
Schema Analyzer to infer component schemas from classes (#498)
Implements `ComponentAnalyzer.GenerateSchema` which takes either an assembly or a list of component resources and produces a serializable package schema structure. Infers component resources and their dependent types. Here are the features that this PR implements and tests: - [x] Inputs - [x] Outputs - [x] Plain types - [x] Boolean, integer, number, string - [x] Complex types - [x] Nested complex types - [x] Self-recursive complex types - [x] Mutually recursive complex types - [x] Required properties & inputs - [ ] Component description - [ ] Complex type description - [ ] Property description - [x] Optional - [x] Array - [x] Map - [x] Asset/Archive - [ ] Resource reference - [ ] Discriminated Union - [ ] Enum - [ ] Methods - [ ] References to component in same provider - [ ] pulumi.Any Resolve #468 (we'll track missing features in separate issues)
1 parent 971c915 commit aba61bb

File tree

5 files changed

+1511
-0
lines changed

5 files changed

+1511
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
component: sdk/provider
2+
kind: Improvements
3+
body: Schema Analyzer to infer component schemas from classes
4+
time: 2025-02-21T17:13:41.55643+01:00
5+
custom:
6+
PR: "468"

0 commit comments

Comments
 (0)