Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,8 @@ src/negative_test/jsontron-0.1/ @kzu

# Managed by Podman Desktop Team:
src/schemas/json/podman-desktop-extension.json @podman-desktop-bot @simonrey1 @benoitf @jiridostal

# Managed by terraform-provider-powershell:
src/schemas/json/tfpowershell-* @markdomansky
src/test/tfpowershell-* @markdomansky
src/negative_test/tfpowershell-* @markdomansky
24 changes: 24 additions & 0 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -7656,6 +7656,30 @@
"fileMatch": ["templatesources.json"],
"url": "https://www.schemastore.org/templatesources.json"
},
{
"name": "Terraform PowerShell provider block manifest",
"description": "Custom provider-block attributes of a Terraform provider built on terraform-provider-powershell",
"fileMatch": ["provider.tfps.json", "**/provider.tfps.json"],
"url": "https://www.schemastore.org/tfpowershell-provider.json"
},
{
"name": "Terraform PowerShell provider data source manifest",
"description": "Typed attribute declarations for one data source in a Terraform provider built on terraform-provider-powershell",
"fileMatch": ["datasource.tfps.json", "**/datasource.tfps.json"],
"url": "https://www.schemastore.org/tfpowershell-datasource.json"
},
{
"name": "Terraform PowerShell provider resource manifest",
"description": "Typed attribute declarations for one resource in a Terraform provider built on terraform-provider-powershell",
"fileMatch": ["resource.tfps.json", "**/resource.tfps.json"],
"url": "https://www.schemastore.org/tfpowershell-resource.json"
},
{
"name": "Terraform PowerShell provider settings",
"description": "Name and registry address of a Terraform provider built on terraform-provider-powershell",
"fileMatch": ["settings.tfps.json", "**/settings.tfps.json"],
"url": "https://www.schemastore.org/tfpowershell-settings.json"
},
{
"name": "Tier.run pricing.json",
"description": "Tier.run pricing model configuration",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "set"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"attributes": {},
"version": 1
}
11 changes: 11 additions & 0 deletions src/negative_test/tfpowershell-datasource/env-not-allowed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "Provider manifests only.",
"env": "X",
"optional": true,
"type": "string"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"BadName": {
"description": "x",
"required": true,
"type": "string"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"description": "No attributes key.",
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "Resources only.",
"required": true,
"requires_replace": true,
"type": "string"
}
},
"version": 1
}
11 changes: 11 additions & 0 deletions src/negative_test/tfpowershell-datasource/two-behaviors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"computed": true,
"description": "x",
"required": true,
"type": "string"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "string"
}
},
"bogus": true,
"version": 1
}
10 changes: 10 additions & 0 deletions src/negative_test/tfpowershell-datasource/unknown-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "object"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"attributes": {
"a": {
"computed": true,
"description": "x",
"type": "string",
"validators": [
{
"one_of": ["x"]
}
]
}
},
"version": 1
}
10 changes: 10 additions & 0 deletions src/negative_test/tfpowershell-datasource/version-must-be-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "string"
}
},
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "map"
}
},
"version": 1
}
10 changes: 10 additions & 0 deletions src/negative_test/tfpowershell-provider/computed-attribute.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"a": {
"computed": true,
"description": "Provider attributes cannot be computed.",
"type": "string"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"default": "x",
"description": "x",
"required": true,
"type": "string"
}
},
"version": 1
}
4 changes: 4 additions & 0 deletions src/negative_test/tfpowershell-provider/empty-attributes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"attributes": {},
"version": 1
}
11 changes: 11 additions & 0 deletions src/negative_test/tfpowershell-provider/env-on-int-attribute.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "env is string-only.",
"env": "X",
"optional": true,
"type": "int"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "env is optional-only.",
"env": "X",
"required": true,
"type": "string"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"BadName": {
"description": "x",
"required": true,
"type": "string"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"description": "No attributes key.",
"version": 1
}
9 changes: 9 additions & 0 deletions src/negative_test/tfpowershell-provider/missing-version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "Resources only.",
"required": true,
"requires_replace": true,
"type": "string"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "Use the built-in timeout attribute.",
"required": true,
"type": "string"
}
},
"timeout_seconds": 600,
"version": 1
}
11 changes: 11 additions & 0 deletions src/negative_test/tfpowershell-provider/two-behaviors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "x",
"optional": true,
"required": true,
"type": "string"
}
},
"version": 1
}
11 changes: 11 additions & 0 deletions src/negative_test/tfpowershell-provider/unknown-top-level-key.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "string"
}
},
"bogus": true,
"version": 1
}
10 changes: 10 additions & 0 deletions src/negative_test/tfpowershell-provider/unknown-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "object"
}
},
"version": 1
}
10 changes: 10 additions & 0 deletions src/negative_test/tfpowershell-provider/version-must-be-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"a": {
"description": "x",
"required": true,
"type": "string"
}
},
"version": 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"a": {
"description": "An attribute.",
"required": true,
"type": "list"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"default": "x",
"description": "An attribute.",
"required": true,
"type": "string"
}
},
"version": 1
}
11 changes: 11 additions & 0 deletions src/negative_test/tfpowershell-resource/default-type-mismatch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"default": "x",
"description": "Bad default.",
"optional": true,
"type": "int"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"attributes": {
"a": {
"description": "An attribute.",
"element_type": "string",
"required": true,
"type": "string"
}
},
"version": 1
}
4 changes: 4 additions & 0 deletions src/negative_test/tfpowershell-resource/empty-attributes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"attributes": {},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"attributes": {
"BadName": {
"description": "An attribute.",
"required": true,
"type": "string"
}
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"description": "No attributes key.",
"version": 1
}
Loading
Loading