This repository was archived by the owner on May 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
cakeshop-api/src/main/webapp Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 3636 var url = window . location . pathname ;
3737 url = url . substring ( 0 , url . lastIndexOf ( "/" ) ) ;
3838
39- rest_url = url + "/api/swagger.json" ;
40- socket_url = url + "/api/swagger-socket.json" ;
39+ var rest_url = url + "/api/swagger.json" ;
40+ var socket_url = url + "/api/swagger-socket.json" ;
4141
4242 hljs . configure ( {
4343 highlightSizeThreshold : 5000
6363 jsonEditor : true ,
6464 apisSorter : "alpha" ,
6565 defaultModelRendering : 'schema' ,
66- showRequestHeaders : true
66+ showRequestHeaders : true ,
67+ validatorUrl : null
6768 } ) ;
6869
69- window . swaggerUiSocket = new SwaggerUi ( {
70+ window . swaggerUiSocket = new SwaggerUi ( {
7071 url : socket_url ,
7172 dom_id : "swagger-ui-socket-container" ,
7273 supportedSubmitMethods : [ ] ,
8283 //jsonEditor: true,
8384 apisSorter : "alpha" ,
8485 defaultModelRendering : 'schema' ,
85- showRequestHeaders : true
86+ showRequestHeaders : true ,
87+ validatorUrl : null
8688 } ) ;
8789
8890 window . swaggerUi . load ( ) ;
89- window . swaggerUiSocket . load ( ) ;
91+ window . swaggerUiSocket . load ( ) ;
9092
9193 function log ( ) {
9294 if ( 'console' in window ) {
You can’t perform that action at this time.
0 commit comments