Contributions
Error Sibling parameters must have unique name
There is an archived thread with same title but even today I had the same issue. If the @Parameter annotation is used at method level and the @QueryParam is present at method parameter level then there are two entries generated by the swagger-maven-plugin. Source code: @GET @Produces(MediaType.APPLICATION_JSON) @Operation(parameters = { @Parameter(in = ParameterIn.QUERY, name = "id", description = "id of the file to download", required = true), @Parameter(in = ParameterIn.QUERY, name = "file", description = "The name of the file to download", required = true), @Parameter(in = ParameterIn.QUERY, name = "date", description = "File date", required = true) } ) public Response download( @QueryParam("id") String id, @QueryParam("file") String file, @QueryParam("date") String date ) { return Response.ok().build(); } The API generated: paths: /download: get: operationId: download parameters: - name: id in: query description: id of the file to download required: true schema: type: string - name: file in: query description: The name of the file to download required: true schema: type: string - name: date in: query description: File date required: true schema: type: string - name: id in: query schema: type: string - name: file in: query schema: type: string - name: date in: query schema: type: string responses: default: description: default response content: application/json: {} The rendered response in Swagger editor looks like: with errors: The maven dependency and plugin I had defined in my pom.xml are as: <dependency> <groupId>io.swagger.core.v3</groupId> <artifactId>swagger-jaxrs2</artifactId> <version>2.1.12</version> </dependency> <plugin> <groupId>io.openapitools.swagger</groupId> <artifactId>swagger-maven-plugin</artifactId> <version>2.1.6</version> <configuration> <swaggerConfig> <info> <title>REST Endpoints</title> <description>Available REST Endpoints exposed by my-project.</description> <contact> <name>My project team</name> <url>https://my-project.somecompany.com/</url> </contact> <version>1.0</version> </info> </swaggerConfig> <resourcePackages> <resourcePackage>my.project.package</resourcePackage> </resourcePackages> <outputDirectory>${basedir}/api/</outputDirectory> <outputFilename>my-project-OpenApi</outputFilename> <outputFormats>YAML</outputFormats> <prettyPrint>true</prettyPrint> </configuration> <executions> <execution> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin> How can I prevent generation of duplicate parameters when using the @Operation or @Parameter annotation at method level?687Views0likes0CommentsRe: ${=System.currentTimeMillis()} not working in version 5.4
It seems something went wrong during the upgrade of SoapUI v5.3 to v5.4. I was unable to find the real cause of this issue but the issue has been resolved after re-installing the SoapUI v5.4. Thanks Nastya_Khovrina, JHunt, nmrao for your inputs.2.9KViews0likes0CommentsRe: ${=System.currentTimeMillis()} not working in version 5.4
Hi Nastya_Khovrina, Thank you for the reply. Until I have the = symbol ( ${=} ), the request is not sent to the server. If I remove the = symbol then the request is sent successfully to the server but the value is left empty. ${=System.currentTimeMillis()} : the request is not sent to server ${System.currentTimeMillis()} : the request is sent to server but the value remains empty. Can you suggest me where should I look for the cause of this issue? Regards, Mohammad Faisal2.9KViews0likes1Comment${=System.currentTimeMillis()} not working in version 5.4
In order to have random string I have been using ${=System.currentTimeMillis()}. Since I have updated the version of SoapUI from 5.3 to 5.4 this is not working and the request is not sent to the server. In the SoapUI log it says: Fri Dec 29 16:27:43 IST 2017:INFO:Error getting response for [ServiceSoapBinding.operationName:SoapUI-Project-Name]; nullSolved2.9KViews0likes6Comments