I found one problem, in that I prefixed the host field with 'http://". Removing that allows the json to be parsed and rendered in the swagger-editor and it looks great (I attached an updated swagger.json). However, even after that fix, swagger-ui still isn't parsing/reading correctly and I'm getting a stack error:
<https://lh3.googleusercontent.com/-9YjVdkFKXWY/V5JCYqoCtYI/AAAAAAAADGE/HLpcLcyikSIJ3aplb_Gx2e1KBrMwDQpHACLcB/s1600/Capture.PNG> On Tuesday, July 19, 2016 at 5:52:47 PM UTC-4, hancholo wrote: > > Just getting started with Swagger-ui. Latest versions of everything > downloaded. > > My swagger.json is valid and populated correctly. > After downloading and serving up the swagger-ui dist and updating the url > in index.html per instructions, but the only thing that appears is the > metadata assigned through my beanConfig (Application constructor technique): > > > beanConfig.setTitle("My API"); > beanConfig.setVersion("0.0.4"); > beanConfig.setDescription("This is a description."); > > > <https://lh3.googleusercontent.com/-zcUS9OsTV2A/V46eMcEYflI/AAAAAAAADDU/wqe-Cq8Wpc8v_7i27-mCsSEKQRmtiqTvQCLcB/s1600/Capture.PNG> > The only indication of error is found in the browser console (both in > Chrome and IE/Edge): > > > <https://lh3.googleusercontent.com/-SKHMlIqx6Qw/V46f4m5vQ5I/AAAAAAAADDk/j2HvFs1kEWM7r4g4P-wR-fHGFHwJROkIACLcB/s1600/Capture.PNG> > > > Now I'm stuck. > > > > > -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
swagger.json
Description: application/json
