[BUG] [JAVA] OAS3 incorrect data type when providing a default value
Created by: kevinparaport
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
Have you tested with the latest master to confirm the issue still exists? -
Have you searched for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When providing a default value, UI is saying the value is a string when it's an integer. Example JSON shows the variable as the correct data type though.
openapi-generator version
5.3.1
OpenAPI declaration file content or url
- name: page
in: query
description: Zero-based page index of results to return
required: false
schema:
type: integer
format: int32
default: 100
Generation Details
Using OAS3 = true
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/pull/9775
Suggest a fix/enhancement
My guess is that the OAS3 changes for Java just aren't setting the type correctly in the mustache templates.