Ask a Question

SwaggerHub Editor - Path line length not resolved correctly in YAML

chichepo
New Contributor

SwaggerHub Editor - Path line length not resolved correctly in YAML

Hi All,

 

I got a Yaml file that includes an endpoint with a path length longer than 130 characters.
...

paths:
     /something_very_long/something_very_long/something_very_long/something_very_long/something_very_long/something_very_long/list:
        get:

...
When loaded within SwaggerHub , the documentation rendering is OK.
When generating a Server Stub, it's OK
When exporting the file to resolved JSON, it's OK

When exporting the file to resolved YAML it generates weird characters and I have to fix the file before using it. 

...

paths:
   ?  /something_very_long/something_very_long/something_very_long/something_very_long/something_very_long/something_very_long/list:
     :   get:

...

 

Is there any ways to make the Yaml resolve working with long paths?

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: