Hello,

/workspaces.yaml/ file on docs page cannot be used to generate a client by
the mean of /Swagger/ client generator.

to summarize : their examples (human written) tells "/create a workspace by
posting {workspace: {name: 'test'}}/" but /swagger-ui.html/ generated for
/workspaces.yaml/ and available too on doc page shows that this /yaml/ would
propose to send a /{name: 'test'}/ instead.

There's a mismatch, and if it is generated by Swagger from this /yaml/ file,
a /Geoserver/ REST client will causes an HTTP 500 error on server side.

I've corrected the /yaml/ declaration for the example of the
/postWorkspaces/ operation, but I don't know in what project I could put
that corrected yaml with a test to show the validity of the correction.
(This will be my first commit on geoserver (fork)).

workspaces.yaml
<http://osgeo-org.1560.x6.nabble.com/file/t365683/workspaces.yaml>  

Regards, 

Marc Le Bihan



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-Dev-f3819232.html


_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to