Skip to content

Commit

Permalink
Do not allow empty hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
alombarte committed Jan 8, 2025
1 parent af8e493 commit 8ecfe49
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/v2.8/backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
"description": "Backend object test",
"target": "https://www.krakend.io/schema/v2.8/backend.json",
"tests": [
{
"description": "Empty host",
"data": {
"host": [""],
"url_pattern": "/__debug/root"
},
"valid": false
},
{
"description": "Simple backend declaration with no host",
"data": {
Expand Down
1 change: 1 addition & 0 deletions v2.8/backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"type": "array",
"items": {
"type": "string",
"pattern": ".+",
"minLength": 1
}
},
Expand Down
1 change: 1 addition & 0 deletions v2.8/krakend.json
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,7 @@
"type": "array",
"items": {
"type": "string",
"pattern": ".+",
"minLength": 1
}
},
Expand Down

0 comments on commit 8ecfe49

Please sign in to comment.