late-balloon-24601
12/24/2024, 12:36 PMencryptionConfigurations:
type: array
items:
"$ref": /aws/v6.65.0/schema.json#/types/aws:ecr%2FRepositoryEncryptionConfiguration:RepositoryEncryptionConfiguration
description: 'Encryption configuration for the repository. See below for schema.'
willReplaceOnChanges: true
If I generate a NodeJS SDK using a schema with that in it, it renders to
import {RepositoryEncryptionConfiguration} from "RepositoryEncryptionConfiguration";
which isn't validenough-garden-22763
12/27/2024, 3:03 PMenough-garden-22763
12/27/2024, 3:03 PM/**
* Encryption configuration for the repository. See below for schema.
*/
encryptionConfigurations?: pulumi.Input<pulumi.Input<pulumiAws.types.input.ecr.RepositoryEncryptionConfiguration>[]>;
enough-garden-22763
12/27/2024, 3:03 PMpulumi/pulumi
? Sounds important to fix.late-balloon-24601
12/27/2024, 3:04 PMlate-balloon-24601
12/27/2024, 3:04 PMenough-garden-22763
12/27/2024, 3:05 PMlate-balloon-24601
12/27/2024, 3:17 PMname: 'echobox'
resources:
echobox:ecr:repository:
properties:
encryptionConfigurations:
type: array
items:
"$ref": "#/types/aws:ecr%2FRepositoryEncryptionConfiguration:RepositoryEncryptionConfiguration"
imageScanningConfiguration:
"$ref": "#/types/aws:ecr%2FRepositoryImageScanningConfiguration:RepositoryImageScanningConfiguration"
Could this be related to the fact my schema is YAML? Most packages use JSON, so I'm curious if this is some issue with the %2F
url encodeenough-garden-22763
12/27/2024, 3:17 PMpulumi gen-sdk
?late-balloon-24601
12/27/2024, 3:18 PMpulumi package gen-sdk ./schema.yaml --language nodejs
enough-garden-22763
12/27/2024, 3:21 PMenough-garden-22763
12/27/2024, 3:21 PMname: 'echobox'
resources:
echobox:ecr:repository:
properties:
encryptionConfigurations:
type: array
items:
"$ref": "/aws/v6.65.0/schema.json#/types/aws:ecr%2FRepositoryEncryptionConfiguration:RepositoryEncryptionConfiguration"
imageScanningConfiguration:
"$ref": "/aws/v6.65.0/schema.json#/types/aws:ecr%2FRepositoryImageScanningConfiguration:RepositoryImageScanningConfiguration"
enough-garden-22763
12/27/2024, 3:22 PM#/types/
syntax is going to look for a locally defined type, and not find one. Looks like instead of failing right away it generates some nonsense though that looks like a problem.late-balloon-24601
12/27/2024, 3:22 PMenough-garden-22763
12/27/2024, 3:23 PMlate-balloon-24601
12/27/2024, 3:24 PM/aws/v6.65.0/schema.json
to stateInputs and inputProperties but forgot to update the ones in properties
. It just so happens my minimal reproduction attempt copied the ones from properties 🤦♂️ Thank you very much!enough-garden-22763
12/27/2024, 3:28 PM