Skip to content

bryjshed/camel-case-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test User Service

This service demos the camel case potential issue with model validation errors

To Test/Run Locally

  • I've added two basic tests to show the potential issue.
  • See Startup.cs for the AddJsonFormatters line in question.
  • Run the unit tests and TestGetInvalid will fail since it's expecting the default formatter to be camel.
  • Uncomment out AddJsonFormatters and run the tests again and TestGetInvalid will pass since the model errors are now camel case.
  • However, with TestGetValid it doesn't matter if AddJsonFormatters is active or not since the default formatter is camel.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages