Im trying to generate JAXRS-CFX server classes with Bean Validation 
annotations.

But I can't find any support to generate the classes with bean validation 
annotations!!.

Have I missed something or is this not possible yet?


im using swagger codegen v 2.2.1


In my swagger yaml file I have specified a pattern:


paths:
  /customer/{customerid}:
    get:
      parameters:

        - name: custumerid
          in: path
          type: string
          pattern: ^[0-9]*$
          required: true



But my generated java class have no regexp annotations!

# java -jar swagger-codegen-cli-2.2.1.jar generate -i customerSerice.yaml 
-l jaxrs-cxf


public interface DefaultApi  {
    @GET
    @Path("/customer/{customerid}")
    
    @Produces({ "application/json" })
    public Response customerCustomeridGet(@PathParam("custumerid") String 
custumerid);
}



/Håkan

-- 
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