Skip to content

Commit

Permalink
[openvpn] Remove mandatory items
Browse files Browse the repository at this point in the history
  • Loading branch information
okraits committed May 20, 2022
1 parent a16a91f commit cd0d762
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions netjsonconfig/backends/openvpn/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"definitions": {
"tunnel": {
"type": "object",
"required": ["name", "mode", "proto", "dev"],
"required": ["name"],
"properties": {
"name": {
"title": "name",
Expand Down Expand Up @@ -475,7 +475,6 @@
{"$ref": "#/definitions/tunnel"},
{
"type": "object",
"required": ["remote"],
"properties": {
"mode": {"enum": ["p2p"]},
"proto": {
Expand Down Expand Up @@ -791,7 +790,7 @@
"type": "object",
"title": "VPN",
"additionalProperties": True,
"oneOf": [
"anyOf": [
{"$ref": "#/definitions/client"},
{"$ref": "#/definitions/server_manual"},
{"$ref": "#/definitions/server_bridged"},
Expand Down

0 comments on commit cd0d762

Please sign in to comment.