forked from microsoft/MLOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't require empty config element in service json schemas (microsoft…
…#518) Adjusts service schema's to not require an empty `"config": {}` element, and instead only include it if there's some other property in it. Split out from microsoft#510
- Loading branch information
Showing
7 changed files
with
53 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,5 +55,5 @@ | |
"unevaluatedProperties": false | ||
} | ||
}, | ||
"required": ["class", "config"] | ||
"required": ["class"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...ts/config/schemas/services/test-cases/bad/invalid/azure_auth_service-config-missing.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"class": "mlos_bench.services.remote.azure.AzureAuthService" | ||
"class": "mlos_bench.services.remote.azure.AzureAuthService", | ||
"config": { | ||
// should be omitted if empty | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
...ch/tests/config/schemas/services/test-cases/good/partial/azure_auth_service-partial.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"class": "mlos_bench.services.remote.azure.AzureAuthService", | ||
"config": {} | ||
"class": "mlos_bench.services.remote.azure.AzureAuthService" | ||
} |
3 changes: 1 addition & 2 deletions
3
mlos_bench/mlos_bench/tests/config/services/remote/mock/mock_auth_service.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"class": "mlos_bench.tests.services.remote.mock.mock_auth_service.MockAuthService", | ||
"config": {} | ||
"class": "mlos_bench.tests.services.remote.mock.mock_auth_service.MockAuthService" | ||
} |