Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-28 Thread Dan Tran
I am able to pin point to a couple of scenarios, filed the issue at https://github.com/swagger-api/swagger-core/issues/ -- 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

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-28 Thread tony tam
I don’t think this PR is from you, but it looks like it’s on the same topic: https://github.com/swagger-api/swagger-core/pull/2214 Can you please test that fix locally and if that doesn’t fix it, file an issue in GitHub? > On May 27,

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-28 Thread 'Calder Carey' via Swagger
On Sun, 5/28/17, Dan Tran <dant...@gmail.com> wrote: Subject: Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped() To: "Swagger" <swagger-swaggersocket@googlegroups.com> Date: Sunday, May 28, 2017, 7:59 AM Dri

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-26 Thread Dan Tran
Further investigation shows that swagger-m-p 3.1.4 + swagger-core-1.5.10 works. Its debug logs also show springframework.hateoas.Resource does get processed however, with swagger-core-1.5.11 which also introducing @JsonUnwrapped handling, this is where NPE shows up I wonder of any one

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-26 Thread Dan Tran
swagger-3.1.4 + swagger-model-1.5.9 work, and it does not scan Spring Hateoas. Is there a option with swagger-core-1.5.12+ to do the same? Thanks -Dan On Friday, May 26, 2017 at 12:23:30 AM UTC-7, Dan Tran wrote: > > Ah, now we toasted. > > swagger-m-p-3.1.3 which uses swagger-core 1.5.5

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-26 Thread Dan Tran
Ah, now we toasted. swagger-m-p-3.1.3 which uses swagger-core 1.5.5 still working for us with limitation. :( On Thursday, May 25, 2017 at 10:39:20 PM UTC-7, tony tam wrote: > > Yes, likely it’s trying to build a schema of that model, and it doesn’t > like it. Not sure what one would

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-25 Thread Dan Tran
here is maven debug log [DEBUG] resolve class org.springframework.hateoas.Resource [DEBUG] trying extension com.github.kongchen.swagger.docgen.reader.ModelModifier@1de4285e [DEBUG] defineModel Resource io.swagger.models.ModelImpl@67d75b4c [DEBUG] resolve [simple type, class java.lang.Object]

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-25 Thread Dan Tran
Hi Tam, Not sure what you mean by 'the definition'. But our module is Spring base with Hateoas. After compile phase, we pass the java package to swagger-m-p to generate swagger jsonschema spec We use swagger-m-p with latest swagger-core to get support for @JsonUnwrap. Even if remove all

Re: NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-25 Thread tony tam
Can you please share the definition that you’re using? Looks to me like you have something like this: type: array without an inner items type: type: array items: type: string > On May 25, 2017, at 7:32 PM, Dan Tran wrote: > > > Hi > > I am using

NPE at io.swagger.jackson.ModelResolver.handleUnwrapped()

2017-05-25 Thread Dan Tran
Hi I am using swagger-maven-plugin to generate swagger spec and NPE at swagger-core private void handleUnwrapped(List props, Model innerModel, String prefix, String suffix) { if (StringUtils.isBlank(suffix) && StringUtils.isBlank(prefix)) {