Hi,

Given Java-s still appalling inability to handle multi-line strings, it's a 
real PITA to have a neat looking "notes" string in your source code.

My idea was to allow the use of a URL to specify the actual contents of the 
string, something like:

@ApiOperation(value="", notes="file:///...")

// ...or...

@ApiOperation(value="", notes="http://...";)


You get the idea. Then at run-time, as the swagger code sweeps around it 
could either be modified (as a fork) or in some other way, instructed to 
first check if the string value for the notes parameter isn't in fact 
specifying the location of a text file to then insert instead. This would 
allow the text files to be edited on a sibling folder to the code perhaps 
or otherwise kept out of the code.

If this has been done already, apologies, I couldn't find that work. Links 
appreciated.

Thanks.


-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to