springdoc / springdoc-openapi-maven-plugin

Library for OpenAPI 3 with spring-boot
https://springdoc.org
Apache License 2.0
141 stars 37 forks source link

UI and generated json display -> integer($int64) instead of long #13

Closed patpatpat123 closed 4 years ago

patpatpat123 commented 4 years ago

Hello,

Just a small thing I wanted to report. On a java primitive long, such as:

@Schema(description = "why integer($int64)?") private long someLongPrimitive;

The plugin is generating

"someLongPrimitive": { "type": "integer", "description": "why integer($int64)?", "format": "int64" },

And the UI, following the json displays

someLongPrimitive* | integer($int64)

Is it possible to call a primitive long, long? Hope not to trouble. Thank you

bnasslahsen commented 4 years ago

@patpatpat123,

You can have a look at the documentation of DataTypes: