Generate model for nodejs

2018-02-09 Thread vijay kumar
Is it possible to generate a node.js client from swagger .

Currently i am using swagger js codegen which generates the stubs and it works 
but it dosent generate the models from API spec .How to generate the Models 
using swagger for node.js

-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Autogenerate Client from Swagger UI

2018-02-09 Thread Ellis
Is there a way to autogenerate a client from just the Swagger UI for API 
documentation/testing? The developer hosts a site like 
this: https://imgur.com/a/bQfsj that only has the API calls and they say 
they don't have a raw Swagger yaml or json file. I want to know if it's 
possible to obtain the Swagger file (or generate it) from just the Swagger 
UI  someone hosts, so that I may use it to 
paste into the Swagger Editor and autogenerate a java client.

-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Swagger Editor Validation Error- "pattern" should match format "regex"

2018-02-09 Thread galynamudryk27
Hello,

When i check my swagger code in a swagger editor I always receive the same 
validation error: 
Schema error at definitions ... .patternshould match format "regex"
format: regex 
Structure of my object:

Object:
type: object
title: 
required:
  - wheel
  - window
properties:
  wheel:
type: string
title: Wheel
description: Wheel
pattern: '^\d{3}-\d{2}-\d{4}$'
example: Wheel
  window:
type: string
title: Window
description: Window
pattern: '^\d{3}-\d{2}-\d{4}$'
example: Window


Could you help me please to resolve this problem?

P.S. I'm using swagger 2.0

Regards, Galyna

-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Swagger js codegen on how to generate models

2018-02-09 Thread vijay kumar
Hi Ramya,

My requirement is for node.js to generate stubs .I have generated Stubs
using swagger-js-codegen and code works fine .It just that iam not able to
generate models object from swagger.

I am looking at different library but nothing has helped so far.

Thank you
Vijay

On Fri, Feb 9, 2018 at 6:09 PM, Ramya kadimetla 
wrote:

> Hi Vijay,
>
> I am using swagger-ant-task.0.0.2 jar for generating swagger.json file for
> ant project.
>
> Thanks & Regards,
> Ramya
>
> On Thu, Feb 8, 2018 at 10:47 PM, vijay kumar 
> wrote:
>
>> Hi Ramya,
>>
>> Sorry about the late reply.
>>
>> Like swagger.json i am not sure can help me help understand how to
>> generate the .json files. Are you using swagger-js-codgen or any other tool.
>>
>> Thank you
>> Vijay
>>
>> On Tue, Feb 6, 2018 at 10:37 AM, Ramya kadimetla <
>> kadimetla.ra...@gmail.com> wrote:
>>
>>> Hi Vijay,
>>>
>>> I am sorry, I haven't used swagger codegen.
>>> Even I am new to swagger, since two weeks, I am working on swagger and I
>>> was able to generate swagger.json for ant project.
>>>
>>> Thanks & Regards,
>>> Ramya
>>>
>>> On Fri, Feb 2, 2018 at 10:27 AM, vijay kumar 
>>> wrote:
>>>
 Hi ,

 I am using *swagger js codegen* to generate source code in *nodejs*
 .it works superb.

 However i have question ,

 If we use *swagger codegen* and use *java* lang , models and handlers
 gets generated as part of stubs generation but in swagger js codegen it
 does not generate any models.

 can you please guide me if we can generate models in swagger js codegen
 .This will actually help when there is an change in api it will
 automatically generate the models without we manually changing.

 Kindly suggest if any other approach is available for nodejs.

 Thank you
 Vijay


 --
 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Swagger" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>> pic/swagger-swaggersocket/s3dLDEF-Ho8/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> swagger-swaggersocket+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>  Kool Vj
>>
>> --
>> 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Swagger" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/swagger-swaggersocket/s3dLDEF-Ho8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
 Kool Vj

-- 
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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Swagger js codegen on how to generate models

2018-02-09 Thread Ramya kadimetla
Hi Vijay,

I am using swagger-ant-task.0.0.2 jar for generating swagger.json file for
ant project.

Thanks & Regards,
Ramya

On Thu, Feb 8, 2018 at 10:47 PM, vijay kumar 
wrote:

> Hi Ramya,
>
> Sorry about the late reply.
>
> Like swagger.json i am not sure can help me help understand how to
> generate the .json files. Are you using swagger-js-codgen or any other tool.
>
> Thank you
> Vijay
>
> On Tue, Feb 6, 2018 at 10:37 AM, Ramya kadimetla <
> kadimetla.ra...@gmail.com> wrote:
>
>> Hi Vijay,
>>
>> I am sorry, I haven't used swagger codegen.
>> Even I am new to swagger, since two weeks, I am working on swagger and I
>> was able to generate swagger.json for ant project.
>>
>> Thanks & Regards,
>> Ramya
>>
>> On Fri, Feb 2, 2018 at 10:27 AM, vijay kumar 
>> wrote:
>>
>>> Hi ,
>>>
>>> I am using *swagger js codegen* to generate source code in *nodejs* .it
>>> works superb.
>>>
>>> However i have question ,
>>>
>>> If we use *swagger codegen* and use *java* lang , models and handlers
>>> gets generated as part of stubs generation but in swagger js codegen it
>>> does not generate any models.
>>>
>>> can you please guide me if we can generate models in swagger js codegen
>>> .This will actually help when there is an change in api it will
>>> automatically generate the models without we manually changing.
>>>
>>> Kindly suggest if any other approach is available for nodejs.
>>>
>>> Thank you
>>> Vijay
>>>
>>>
>>> --
>>> 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Swagger" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/swagger-swaggersocket/s3dLDEF-Ho8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> swagger-swaggersocket+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>  Kool Vj
>
> --
> 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
> 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 swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.