You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
The schema should be packaged up and included in the provider to make it available from the provider's GetSchema method.
This can be done by setting an optional string schema property that's defined on the Provider interface.
I suspect we'd implement this in a similar way to how the provider's version is set: Include the schema.json file in the NPM package, and then at runtime read it the same way we read package.json to get the version:
Be aware: if we're switching the schema to be defined in YAML rather than JSON, it'll still need to be returned as a JSON string from the provider, so the YAML would need to be converted to JSON. See #9.
The text was updated successfully, but these errors were encountered:
Hello!
Issue details
The schema should be packaged up and included in the provider to make it available from the provider's
GetSchema
method.This can be done by setting an optional string
schema
property that's defined on theProvider
interface.I suspect we'd implement this in a similar way to how the provider's version is set: Include the
schema.json
file in the NPM package, and then at runtime read it the same way we readpackage.json
to get the version:pulumi-component-provider-ts-boilerplate/provider/cmd/pulumi-resource-xyz/index.ts
Lines 20 to 26 in a0aad2c
Be aware: if we're switching the schema to be defined in YAML rather than JSON, it'll still need to be returned as a JSON string from the provider, so the YAML would need to be converted to JSON. See #9.
The text was updated successfully, but these errors were encountered: