Skip to content

Commit

Permalink
feat: server variables must have default value (#322)
Browse files Browse the repository at this point in the history
This PR brings the capability of checking whether
a server variable has a default value or not. If not,
then we are going to display warning.

The code snippet below will display warning.
```
servers:
  - url: 'https://example.com'
    description: 'A server which has variable without default value'
    variables:
      name:
        default: ''
```
  • Loading branch information
Andras-Csanyi committed Sep 16, 2021
1 parent 5ab5b76 commit 483f4bf
Show file tree
Hide file tree
Showing 4 changed files with 187 additions and 47 deletions.
5 changes: 3 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "package-lock.json|^.secrets.baseline$",
"lines": null
},
"generated_at": "2021-02-24T19:25:15Z",
"generated_at": "2021-09-15T12:11:12Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand All @@ -25,6 +25,7 @@
"name": "CloudantDetector"
},
{
"ghe_instance": "github.ibm.com",
"name": "GheDetector"
},
{
Expand Down Expand Up @@ -85,7 +86,7 @@
}
]
},
"version": "0.13.1+ibm.29.dss",
"version": "0.13.1+ibm.45.dss",
"word_list": {
"file": null,
"hash": null
Expand Down
Loading

0 comments on commit 483f4bf

Please sign in to comment.