Skip to content

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
Contributor

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