Skip to content

Commit

Permalink
add security red warning
Browse files Browse the repository at this point in the history
  • Loading branch information
egekorkan committed Oct 12, 2018
1 parent d0753aa commit 67f042f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions WebContent/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
</div>
</header>




<body>

<div class="pure-g wrap">
Expand Down Expand Up @@ -76,6 +79,7 @@ <h3 class="pure-u-1 header"> <i class="fab fa-github"></i> For unexpected valida
<div class="pure-u-18-24">
<textarea autofocus id="td-text" name="td-text" rows="32" placeholder="Enter Thing Description here..."></textarea>
</div>

<!-- <div class="pure-u-1 pure-u-lg-7-24 "> -->
<div class="pure-u-5-24">
<div class="panel">
Expand Down Expand Up @@ -139,6 +143,7 @@ <h3 class="pure-u-1 header"> <i class="fab fa-github"></i> For unexpected valida
<div class="pure-u-1 header">
<pre></pre>
</div>

<div class="pure-u-1">
<pre id="console">Waiting for validation...&#13;&#10;</pre>
</div>
Expand Down
6 changes: 3 additions & 3 deletions WebContent/js/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ function checkSecurity(td) {
//all good
} else {
log('! Warning: In property ' + curPropertyName + `, form ` + j + ' has no security scheme. TD should have either in the root OR for every form OR for every interaction');
light('WARNING', 'spot-json-schema');
light('KO', 'spot-json-schema');
}
}
}
Expand All @@ -587,7 +587,7 @@ function checkSecurity(td) {
//all good
} else {
log('! Warning: In action ' + curActionName + `, form ` + j + ' has no security scheme. TD should have either in the root OR for every form OR for every interaction');
light('WARNING', 'spot-json-schema');
light('KO', 'spot-json-schema');
}
}
}
Expand All @@ -608,7 +608,7 @@ function checkSecurity(td) {
//all good
} else {
log('! Warning: In event ' + curEventName + `, form ` + j + ' has no security scheme. TD should have either in the root OR for every form OR for every interaction');
light('WARNING', 'spot-json-schema');
light('KO', 'spot-json-schema');
}
}
}
Expand Down

0 comments on commit 67f042f

Please sign in to comment.