Hi Team,
Using swagger to generate the client and encountered some problems during use, need help and repair. Thank you
- When I used <nexus_url>/service/rest/swagger.json to generate the go client, a validation error occurred, I had to fix the error myself and then generate.
The error is as follows:
- definitions.ContentSelectorApiUpdateRequest.properties.description.allowEmptyValue in body is a forbidden property
- definitions.RoutingRuleXO.properties.description.allowEmptyValue in body is a forbidden property
- definitions.ContentSelectorApiCreateRequest.properties.description.allowEmptyValue in body is a forbidden property
- When I use the client to call security-related restful api. For example, role and user will return http status code 202 when sending a put request to update resources, but this status code is not defined in swagger.json, which will cause the client program to report an error