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 Feb 12, 2021
1 parent 82a12e1 commit 5971be3
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 @@ -450,7 +450,6 @@
{"$ref": "#/definitions/tunnel"},
{
"type": "object",
"required": ["remote"],
"properties": {
"mode": {"enum": ["p2p"]},
"proto": {
Expand Down Expand Up @@ -740,7 +739,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 5971be3

Please sign in to comment.