-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception while generating java code (swagger 3.0.0-rc1) #8301
Comments
hey @kroegerama this was already fixed for |
Hi @HugoMario after updating to version
|
@kroegerama |
Sorry, I am not allowed to share the exact definition. But the following definition: swagger: '2.0'
info:
version: 1.0.1
host: example.com
basePath: /api/v1
schemes:
- https
securityDefinitions:
Token:
type: apiKey
in: query
name: token
paths:
'/products/home':
get:
operationId: getProducts
tags:
- Product
parameters:
- name: page
in: query
required: true
type: integer
- name: itemCount
in: query
required: true
type: integer
responses:
'200':
schema:
type: array
items:
$ref: '#/definitions/Product'
definitions:
Product:
type: object
title: Product
properties:
id:
type: string
title:
type: string
simmilar:
type: array
items:
$ref: '#/definitions/Product' Generates an exception as well:
|
Hey @kroegerama can you please try with this new version: swagger-codegen-cli-2.4.0-20180613.124022-270.jar I've testing on windows with this and works pretty fine. |
@HugoMario your new version is 2.4.0, but my bug report was about 3.0.0 |
omg, sorry, my bad. @kroegerama please try with this one swagger-codegen-cli-3.0.0-20180615.112032-79.jar and let me know how it works for you. |
@HugoMario Seems not to be fixed for me. I'm still getting the same error. |
PR . #8327 should solve this issue, @kroegerama can you please check this when you have a chance? You can use this version: swagger-codegen-cli-3.0.0-20180616.164244-81.jar |
Thanks a lot! Seems to be fixed. @HugoMario |
I have added a fix for this issue in another GitHub issue which is about the same topic. |
I'm getting the following error when I try to generate a java client with v3.0.0-rc1:
My file works fine with swagger 2
The text was updated successfully, but these errors were encountered: