Added hover over popup to display property validation attributes
swagger-ui does not render all Parameter-fields #808
This commit is contained in:
@@ -64,6 +64,13 @@ class MainView extends Backbone.View
|
||||
@addResource resource, @model.auths
|
||||
@
|
||||
|
||||
$('.propWrap').hover(
|
||||
->
|
||||
$('.optionsWrapper', $(this)).show()
|
||||
,->
|
||||
$('.optionsWrapper', $(this)).hide()
|
||||
)
|
||||
|
||||
addResource: (resource, auths) ->
|
||||
# Render a resource and add it to resources li
|
||||
resource.id = resource.id.replace(/\s/g, '_')
|
||||
|
||||
@@ -391,6 +391,32 @@
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
}
|
||||
.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper {
|
||||
border-spacing: 0;
|
||||
position: absolute;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #bbbbbb;
|
||||
display: none;
|
||||
font-size: 11px;
|
||||
max-width: 400px;
|
||||
line-height: 30px;
|
||||
color: black;
|
||||
padding: 5px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper th {
|
||||
text-align: center;
|
||||
background-color: #eeeeee;
|
||||
border: 1px solid #bbbbbb;
|
||||
font-size: 11px;
|
||||
color: #666666;
|
||||
font-weight: bold;
|
||||
padding: 5px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.swagger-section .swagger-ui-wrap .model-signature .description .propWrap .optionsWrapper .optionName {
|
||||
font-weight: bold;
|
||||
}
|
||||
.swagger-section .swagger-ui-wrap .model-signature .propName {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@@ -281,6 +281,34 @@
|
||||
font-weight: bold;
|
||||
color: #000;
|
||||
}
|
||||
.propWrap {
|
||||
.optionsWrapper {
|
||||
border-spacing: 0;
|
||||
position: absolute;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #bbbbbb;
|
||||
display: none;
|
||||
font-size: 11px;
|
||||
max-width: 400px;
|
||||
line-height: 30px;
|
||||
color: black;
|
||||
padding: 5px;
|
||||
margin-left:10px;
|
||||
th {
|
||||
text-align: center;
|
||||
background-color: #eeeeee;
|
||||
border: 1px solid #bbbbbb;
|
||||
font-size: 11px;
|
||||
color: #666666;
|
||||
font-weight: bold;
|
||||
padding: 5px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.optionName {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.propName {
|
||||
font-weight: bold;
|
||||
|
||||
Reference in New Issue
Block a user