-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from microsoft/jsonext
Add netremote-server JSON schema and example file.
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://github.com/microsoft/netremote/tree/develop/config/netremote-server-config-schema.json", | ||
"$title": "NetRemote Server", | ||
"description": "NetRemote Server Configuration Schema", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"$schema": { | ||
"type": "string", | ||
"description": "The schema version" | ||
}, | ||
"WifiAccessPointAttributes": { | ||
"type": "object", | ||
"description": "Wifi Access Point Attributes", | ||
"additionalProperties": false, | ||
"properties": { | ||
"Properties": { | ||
"type": "object", | ||
"description": "Unstructured (string) Wifi Access Point Properties", | ||
"additionalProperties": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string", | ||
"description": "Additional properties" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
src/common/server/config/netremote-server-config-example.json
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "../../../../config/netremote-server-config-schema.json", | ||
"WifiAccessPointAttributes": { | ||
"Properties": { | ||
"wlan0": { | ||
"MacAddress": "00:11:22:33:44:55", | ||
"RfAttenuatorChannelsAttached": "1,3" | ||
}, | ||
"wlp0s3": { | ||
"MacAddress": "AA:BB:CC:DD:EE:FF", | ||
"RfAttenuatorChannelsAttached": "2,4,6", | ||
"Another": "String value" | ||
} | ||
} | ||
} | ||
} |