Sure, you can use http://editor.swagger.io/

El viernes, 8 de julio de 2016, 14:29:32 (UTC-3), Shreejit Nair escribió:
>
> Thanks a lot,
> Is there a tool or UI that can help validate my Swagger to see if its 
> compliant?
> Since i am converting the spec into an object and extracting everything 
> using the read() method call.
> getBasePath,getOperations,getParameters and all that
>
> It is critical for me to ensure the Swagger.json itself is valid before 
> all this works
>
> On Friday, July 8, 2016 at 11:26:07 AM UTC-5, [email protected] wrote:
>>
>> Hi, I tried your json at Swagger Editor and it has two errors.
>>
>>
>> <https://lh3.googleusercontent.com/-zevnN4XqdUA/V3_UE6MJZJI/AAAAAAAAADk/5ScZrcTxzcIWKYUlS5V-SETQ9JJtweu9ACLcB/s1600/Untitled.png>
>> Maybe that´s the issue
>>
>>
>> El viernes, 8 de julio de 2016, 13:17:58 (UTC-3), Shreejit Nair escribió:
>>>
>>> Hi,
>>>
>>> My Swagger.read(some json path) always returns some error or returns 
>>> null.
>>> However, the petstore.json works correctly and returns the swagger 
>>> object correctly
>>>
>>> Swagger swagger = new SwaggerParser().read(url); // Does not seem to be 
>>> working for me
>>>
>>>
>>> Tried with:
>>>
>>> 1. http://ipaddress/TomcatWebAppForChefNode/swagger.json 
>>> <http://169.44.118.61:8080/TomcatWebAppForChefNode/swagger.json>
>>>
>>> returns null
>>>
>>>
>>> 2. http://somepath/swagger.json 
>>> <http://watsondop05.rch.stglabs.ibm.com:9106/services/concept_detection/api/swagger/swagger.json>
>>>
>>> Throws errors like:
>>>
>>> java.io.IOException: Invalid Http response
>>>
>>> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(
>>> HttpURLConnection.java:1343)
>>>
>>> at io.swagger.parser.util.RemoteUrl.urlToString(RemoteUrl.java:130)
>>>
>>> at io.swagger.parser.Swagger20Parser.read(Swagger20Parser.java:81)
>>>
>>> at io.swagger.parser.SwaggerParser.read(SwaggerParser.java:64)
>>>
>>> at io.swagger.parser.SwaggerParser.read(SwaggerParser.java:52)
>>>
>>>
>>> 3. Works fine with: 
>>>
>>> http://petstore.swagger.io/v2/swagger.json returns a swagger object of 
>>> the entire stuff correctly
>>>
>>>
>>> Please let me know if there is a spec i should be referring to as a 
>>> template.
>>>
>>>
>>> Regards,
>>>
>>> Shreejit
>>>
>>

-- 
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.

Reply via email to