Skip to content
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

fix #3088 - fixes boolean @type annotation #3125

Conversation

AdrianMF
Copy link
Contributor

@Schema(type = "boolean") test_boolean:MyBooleanClass = false

Specifying type=boolean in the schema always produces type:Object in the resulting json. I have tracked the issue down to PrimitiveType.java in package io.swagger.v3.core.util

It appears that
dms.put("boolean", "boolean");
Should be :
dms.put("boolean_", "boolean");

@frantuma frantuma merged commit e7a5dd5 into swagger-api:master Feb 17, 2019
@frantuma
Copy link
Member

well spotted, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants