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

Json Lowercase object property #806

Open
BeGabor opened this issue Jan 24, 2025 · 0 comments
Open

Json Lowercase object property #806

BeGabor opened this issue Jan 24, 2025 · 0 comments

Comments

@BeGabor
Copy link

BeGabor commented Jan 24, 2025

I'm upgraded my project to Commit: SHA-1: a2273ade7989e5194820793abbe061fb2bb05eb1

I have a simple object from json in the controller input parameter, example:

type
TExample = class
private


public
Property myProp : integer;
end;

From request body: " {"myProp": "123456"}...

**

The controller gets: myProp = 0.

My workaround:

MVCNameCaseDefault := TMVCNameCase.ncAsIs;

I don't want to overwrite the global default behavior, so I try this, but its not working, what I missing?

type
[MVCNameCase(TMVCNameCase.ncAsIs)]
TExample = class
private
....

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

No branches or pull requests

1 participant