Skip to content

Commit

Permalink
Merge #11693
Browse files Browse the repository at this point in the history
11693:  Add a few extra "additionalProperties": false r=Frassle a=Frassle

Places where the binder doesn't expect anything else.

Fixes the "config" schema. The Go struct is declared as:
```
Required []string `json:"defaults,omitempty" yaml:"defaults,omitempty"`
```
But the schema said "required" not "defaults"

Co-authored-by: Fraser Waters <fraser@pulumi.com>
  • Loading branch information
bors[bot] and Frassle committed Dec 21, 2022
2 parents 0f23e35 + 555ac3a commit 0450a10
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/codegen/schema/pulumi.json
Expand Up @@ -68,6 +68,7 @@
"format": "regex"
}
},
"additionalProperties": false,
"required": ["moduleFormat"]
},
"config": {
Expand All @@ -81,14 +82,15 @@
"$ref": "#/$defs/propertySpec"
}
},
"required": {
"description": "A list of the names of the package's required configuration variables.",
"defaults": {
"description": "A list of the names of the package's non-required configuration variables.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
"types": {
"description": "A map from type token to complexTypeSpec that describes the set of complex types (i.e. object, enum) defined by this package.",
Expand Down

0 comments on commit 0450a10

Please sign in to comment.