Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MAJOR FIX: Property Naming Convention Violates JSON Naming Conventions #45

Open
cjdutoit opened this issue Sep 8, 2022 · 0 comments
Open

Comments

@cjdutoit
Copy link
Collaborator

cjdutoit commented Sep 8, 2022

When controllers are configured to use Camel Case for JSON Serialization, it correctly returns the data, but when an exception is thrown, the properties under errors are returned with Pascal Case convention.

{
  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
  "title": "Invalid city. Please correct the errors and try again.",
  "status": 400,
  "errors": {
    "Name": [
      "Text is required"
    ],
    "CreatedDate": [
      "Date is required",
      "Date is not recent"
    ],
    "CreatedByUser": [
      "Text is required"
    ],
    "UpdatedDate": [
      "Date is required"
    ],
    "UpdatedByUser": [
      "Text is required"
    ]
  }
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant