Closed hide212131 closed 11 months ago
@hide212131 I don't reproduce, I try with differents numeric fields and it seems to work
@qmonmert Thank you for investigating the issue. I apologize for the lack of clarity in my initial description. The response message is correct; the issue lies with the request message.
@hide212131 thanks for the precision, I confirm the bug
Overview of the issue
I'll provide an example below.
salary
represents the numeric field.When newly inputted, the field is sent as a string.
When updated without any changes, the field is sent as a number.
When updated with changes, the field is sent as a string.
Motivation for or Use Case
While this doesn't directly cause an error, it can lead to confusion during frontend development that adheres to API specifications.
Reproduce the error
Perform registration and update operations on numeric fields.
Related issues
Suggest a Fix
The following processing should be performed on numeric fields.
{entityname}-update.tsx:
JHipster Version(s)
8.0.0-beta.3
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "17.0.8" 2023-07-18 OpenJDK Runtime Environment GraalVM CE 22.3.3 (build 17.0.8+7-jvmci-22.3-b22) OpenJDK 64-Bit Server VM GraalVM CE 22.3.3 (build 17.0.8+7-jvmci-22.3-b22, mixed mode, sharing)
git version 2.39.3 (Apple Git-145)
node: v18.17.1 npm: 9.6.7
Docker version 24.0.6, build ed223bc
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryEmployee.json
``` { "applications": "*", "changelogDate": "20231006113137", "entityTableName": "employee", "fields": [ { "fieldName": "firstName", "fieldType": "String" }, { "fieldName": "salary", "fieldType": "Long" } ], "name": "Employee", "relationships": [], "searchEngine": "no" } ```Browsers and Operating System
chrome , macos