swagger-api/swagger-codegen
Vedi su GitHubArray doesnt accept multiple entries in JAX-RS
Open
#2961 aperta il 25 mag 2016
Issue: BugServer: Javahelp wanted
Metriche repository
- Star
- (12.701 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
I recently opened a bug in swagger-ui, but now I think its a problem with swagger codegen. This is the related post: https://github.com/swagger-api/swagger-ui/issues/2175
When I build Code out of a spec which has an Array the Code seems to be right, but when I run I can have max. 1 entry. It doesnt recognize a "," with the collectionFormat csv. It also doesnt work with a "|" when i choose pipe as collection Format. Here is the spec:
"parameters": [
{
"name": "api_key",
"in": "header",
"description": "description",
"required": true,
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "csv"
}
]
Im build a JAX-RS -Jersey server and the swagger Codegen version is 2.1.6 and I run the Code with this:
-i swaggerPolicy.json \
-l jaxrs \
-o D:\Dateien\swagger_restacl_integration\SwaggerRestaclIntegration