Skip to content

Commit 749c0b2

Browse files
Remove duplicated AzureBlobFileSystemOptions definition
1 parent f129f74 commit 749c0b2

File tree

1 file changed

+13
-35
lines changed

1 file changed

+13
-35
lines changed

src/Umbraco.StorageProviders.AzureBlob/appsettings-schema.Umbraco.StorageProviders.AzureBlob.json

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -31,43 +31,22 @@
3131
"description": "Configuration of Umbraco Storage Providers - Azure Blob Storage.",
3232
"properties": {
3333
"Media": {
34-
"$ref": "#/definitions/AzureBlobMediaFileSystemOptions"
34+
"$ref": "#/definitions/AzureBlobFileSystemOptions"
3535
}
3636
},
3737
"patternProperties": {
3838
"^(?!Media$).*": {
39-
"$ref": "#/definitions/AzureBlobFileSystemOptions"
40-
}
41-
}
42-
},
43-
"AzureBlobMediaFileSystemOptions": {
44-
"type": "object",
45-
"description": "The Azure Blob Media File System options.",
46-
"required": [
47-
"ConnectionString",
48-
"ContainerName"
49-
],
50-
"properties": {
51-
"ConnectionString": {
52-
"type": "string",
53-
"description": "Gets or sets the storage account connection string.",
54-
"minLength": 1
55-
},
56-
"ContainerName": {
57-
"type": "string",
58-
"description": "Gets or sets the container name.",
59-
"minLength": 1
60-
},
61-
"ContainerRootPath": {
62-
"type": [
63-
"null",
64-
"string"
65-
],
66-
"description": "Gets or sets the root path of the container."
67-
},
68-
"VirtualPath": {
69-
"type": "string",
70-
"description": "Gets or sets the virtual path."
39+
"allOf": [
40+
{
41+
"$ref": "#/definitions/AzureBlobFileSystemOptions"
42+
},
43+
{
44+
"type": "object",
45+
"required": [
46+
"VirtualPath"
47+
]
48+
}
49+
]
7150
}
7251
}
7352
},
@@ -76,8 +55,7 @@
7655
"description": "The Azure Blob File System options.",
7756
"required": [
7857
"ConnectionString",
79-
"ContainerName",
80-
"VirtualPath"
58+
"ContainerName"
8159
],
8260
"properties": {
8361
"ConnectionString": {

0 commit comments

Comments
 (0)