--------------------------------------------
On Tue, 1/24/17, Ron Ratovsky <[email protected]> wrote:

 Subject: Re: Generating code from swagger-codegen versus code generated by 
Swagger UI
 To: "[email protected]" 
<[email protected]>
 Date: Tuesday, January 24, 2017, 6:11 AM
 
 #yiv1590979736
 #yiv1590979736 --
  
  _filtered #yiv1590979736 {font-family:Arial;panose-1:2 11 6
 4 2 2 2 2 2 4;}
  _filtered #yiv1590979736 {panose-1:2 7 3 9 2 2 5 2 4 4;}
  _filtered #yiv1590979736 {panose-1:2 4 5 3 5 4 6 3 2 4;}
  _filtered #yiv1590979736 {font-family:Calibri;panose-1:2 15
 5 2 2 2 4 3 2 4;}
 #yiv1590979736  
 #yiv1590979736 p.yiv1590979736MsoNormal, #yiv1590979736
 li.yiv1590979736MsoNormal, #yiv1590979736
 div.yiv1590979736MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}
 #yiv1590979736 a:link, #yiv1590979736
 span.yiv1590979736MsoHyperlink
        {color:blue;text-decoration:underline;}
 #yiv1590979736 a:visited, #yiv1590979736
 span.yiv1590979736MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
 #yiv1590979736 p
        {margin-right:0cm;margin-left:0cm;font-size:12.0pt;}
 #yiv1590979736 pre
        {margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;}
 #yiv1590979736 span.yiv1590979736HTMLPreformattedChar
        {font-family:Courier;}
 #yiv1590979736 span.yiv1590979736EmailStyle20
        {font-family:Calibri;color:windowtext;}
 #yiv1590979736 span.yiv1590979736msoIns
        {text-decoration:underline;color:teal;}
 #yiv1590979736 .yiv1590979736MsoChpDefault
        {font-size:10.0pt;}
  _filtered #yiv1590979736 {margin:72.0pt 72.0pt 72.0pt
 72.0pt;}
 #yiv1590979736 div.yiv1590979736WordSection1
        {}
 #yiv1590979736 Hi
 Dan,
  Most likely
 – different versions. The online editor tends to use a
 snapshot version of the codegen, meaning it’s a bit more
 cutting edge – however, we don’t always update it to the
 latest snapshot.Try switching
 to version 2.2.2-SNAPSHOT and see if you can spot a
 difference.
  
  
  From:
 <[email protected]>
 on behalf of Daniel Lee Pit Sen
 <[email protected]>
 Reply-To:
 "[email protected]"
 <[email protected]>
 Date: Monday, 23 January 2017 at
 18:21
 To: Swagger
 <[email protected]>
 Subject: Generating code from
 swagger-codegen versus code generated by Swagger
 UI
  Hello
 
  I am new to
 Swagger.   I used Swagger
 Editor to generate Client Code: Jaxrs Cxf Client by
 uploading schema: myschema.json. The interface AuditAPI was
 generated with the following method
 signature:  @GET   
 @Path("/abc/{id}/audits/{auditId}")    @Consumes({
 "application/json" })    @Produces({
 "application/json" })    @ApiOperation(value =
 "Single entry", tags={
  })    public Audit abcIdAuditsAuditIdGet(@PathParam("id")
 Integer id, @PathParam("auditId") Integer
 auditId);    I then used
 swagger-codegen-maven-plugin to generate jaxrs-cxf client code. The same
 interface AuditAPI was generated but the method signature is
 different:
  plugin>
   
 <groupId>io.swagger</groupId>
   
 <artifactId>swagger-codegen-maven-plugin</artifactId>
   
 <version>2.2.1</version>
   
 <executions>
       <execution>
          <goals>
             <goal>generate</goal>
          </goals>
          <configuration>
             <inputSpec>src/main/resources/schemas/myschema.json</inputSpec>
             <language>jaxrs-cxf</language>
             <configOptions>
                <output>target/generated-sources/swagger</output>
             </configOptions>
          </configuration>
       </execution>
   
 </executions>
 </plugin>  @GET
 @Path("/abc/{id}/audits/{auditId}")
 @Consumes({ "application/json"
 })
 @Produces({ "application/json"
 })
 public Response
 abcIdAuditsAuditIdGet(@PathParam("id") Integer
 id,@PathParam("auditId") Integer
 auditId);  
  Can
 anyone explain to me why the generated codes are
 different?
  
  RegardsDan (swagger
 newb)-- 
 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 [email protected].
 For more options, visit https://groups.google.com/d/optout.
 
 
 
 -- 
 
 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 [email protected].
 
 For more options, visit https://groups.google.com/d/optout.
  doua zi  guvernul condus de Ion Ghica a fost inlocuit cu un cabinet -idat de 
Lascar Catargiu. Se incheie  astfel  o perioada de peste patru ani  13 tie 1867 
- 23 martie 1871   in care patru guverne de coalitie liberala si trei 9rne ale 
unor coalitii intre liberali si conservatori actioneaza pentru  oltarea 
institutiilor democratice intemeiate pe Constitutia din 1866  pentru solidarea 
autonomiei statului national roman si afirmarea suveranitatii stuia in 
perspectiva independentei si unitatii tuturor romanilor. Dezaprobarea stor 
actiuni se resimte nu intamplator  Carol  fiind sfatuit de Marile Puteri ca sa 
conservatoare e cea mai solida . intelegem  asadar  cum se ajunge la mativa 
guvernamentala din 11 23 martie 1871.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to