Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Aspire schema to latest #4430

Merged
merged 3 commits into from
Feb 7, 2025
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
232 changes: 160 additions & 72 deletions src/schemas/json/aspire-8.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@
"type": "string",
"description": "The entrypoint to use for the container image when executed."
},
"deployment": {
"oneOf": [
{
"$ref": "#/definitions/resource.azure.bicep.v0"
},
{
"$ref": "#/definitions/resource.azure.bicep.v1"
}
]
},
"args": {
"$ref": "#/definitions/args"
},
Expand Down Expand Up @@ -154,6 +164,40 @@
},
"additionalProperties": false
},
{
"type": "object",
"description": "Represents a .NET project resource.",
"required": ["type", "path"],
"properties": {
"type": {
"const": "project.v1"
},
"path": {
"type": "string",
"description": "The path to the project file. Relative paths are interpreted as being relative to the location of the manifest file."
},
"deployment": {
"oneOf": [
{
"$ref": "#/definitions/resource.azure.bicep.v0"
},
{
"$ref": "#/definitions/resource.azure.bicep.v1"
}
]
},
"args": {
"$ref": "#/definitions/args"
},
"env": {
"$ref": "#/definitions/env"
},
"bindings": {
"$ref": "#/definitions/bindings"
}
},
"additionalProperties": false
},
{
"type": "object",
"description": "Represents an executable resource.",
Expand Down Expand Up @@ -228,53 +272,65 @@
},
"default": {
"type": "object",
"required": ["generate"],
"properties": {
"generate": {
"type": "object",
"required": ["minLength"],
"oneOf": [
{
"required": ["generate"],
"properties": {
"minLength": {
"type": "number",
"description": "The minimum length of the generated value."
},
"lower": {
"type": "boolean",
"description": "Indicates whether lower case characters are allowed in the generated value."
},
"upper": {
"type": "boolean",
"description": "Indicates whether upper case characters are allowed in the generated value."
"generate": {
"type": "object",
"required": ["minLength"],
"properties": {
"minLength": {
"type": "number",
"description": "The minimum length of the generated value."
},
"lower": {
"type": "boolean",
"description": "Indicates whether lower case characters are allowed in the generated value."
},
"upper": {
"type": "boolean",
"description": "Indicates whether upper case characters are allowed in the generated value."
},
"numeric": {
"type": "boolean",
"description": "Indicates whether numeric characters are allowed in the generated value."
},
"special": {
"type": "boolean",
"description": "Indicates whether special characters are allowed in the generated value."
},
"minLower": {
"type": "number",
"description": "Specifies the minimum number of lower case characters that must appear in the generated value."
},
"minUpper": {
"type": "number",
"description": "Specifies the minimum number of upper case characters that must appear in the generated value."
},
"minNumeric": {
"type": "number",
"description": "Specifies the minimum number of numeric characters that must appear in the generated value."
},
"minSpecial": {
"type": "number",
"description": "Specifies the minimum number of special characters that must appear in the generated value."
}
}
},
"numeric": {
"type": "boolean",
"description": "Indicates whether numeric characters are allowed in the generated value."
},
"special": {
"type": "boolean",
"description": "Indicates whether special characters are allowed in the generated value."
},
"minLower": {
"type": "number",
"description": "Specifies the minimum number of lower case characters that must appear in the generated value."
},
"minUpper": {
"type": "number",
"description": "Specifies the minimum number of upper case characters that must appear in the generated value."
},
"minNumeric": {
"type": "number",
"description": "Specifies the minimum number of numeric characters that must appear in the generated value."
},
"minSpecial": {
"type": "number",
"description": "Specifies the minimum number of special characters that must appear in the generated value."
"additionalProperties": false
}
},
{
"required": ["value"],
"properties": {
"value": {
"type": "string",
"description": "The default value to use if the parameter is not provided at deployment time."
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -334,35 +390,10 @@
"additionalProperties": false
},
{
"type": "object",
"default": "Represents a resource that is deployed using Azure Bicep.",
"required": ["path"],
"properties": {
"type": {
"const": "azure.bicep.v0"
},
"path": {
"type": "string",
"description": "Path to the Bicep file to be used for deployment."
},
"connectionString": {
"$ref": "#/definitions/connectionString"
},
"params": {
"type": "object",
"description": "A list of parameters which are passed to Azure deployment.",
"additionalProperties": {
"oneOf": [
{ "type": "array" },
{ "type": "boolean" },
{ "type": "number" },
{ "type": "object" },
{ "type": "string" }
]
}
}
},
"additionalProperties": false
"$ref": "#/definitions/resource.azure.bicep.v0"
},
{
"$ref": "#/definitions/resource.azure.bicep.v1"
},
{
"type": "object",
Expand Down Expand Up @@ -431,9 +462,11 @@
"container.v1",
"dockerfile.v0",
"project.v0",
"project.v1",
"value.v0",
"executable.v0",
"azure.bicep.v0",
"azure.bicep.v1",
"aws.cloudformation.template.v0",
"aws.cloudformation.stack.v0",
"dapr.component.v0",
Expand All @@ -453,6 +486,61 @@
}
},
"definitions": {
"resource.azure.bicep.v0": {
"type": "object",
"description": "Represents a resource that is deployed using Azure Bicep.",
"required": ["path"],
"properties": {
"type": {
"const": "azure.bicep.v0"
},
"path": {
"type": "string",
"description": "Path to the Bicep file to be used for deployment."
},
"connectionString": {
"$ref": "#/definitions/connectionString"
},
"params": {
"type": "object",
"description": "A list of parameters which are passed to Azure deployment.",
"additionalProperties": {
"oneOf": [
{ "type": "array" },
{ "type": "boolean" },
{ "type": "number" },
{ "type": "object" },
{ "type": "string" }
]
}
}
},
"additionalProperties": false
},
"resource.azure.bicep.v1": {
"allOf": [
{
"$ref": "#/definitions/resource.azure.bicep.v0"
},
{
"type": "object",
"properties": {
"type": {
"const": "azure.bicep.v1"
},
"scope": {
"type": "object",
"properties": {
"resourceGroup": {
"type": "string",
"description": "The name of the resource group to deploy the resource to."
}
}
}
}
}
]
},
"connectionString": {
"type": "string",
"description": "A connection string that can be used to connect to this resource."
Expand Down
Loading