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

Automatically Title-Case Camel-Cased props #101

Open
cda210 opened this issue Jan 18, 2022 · 1 comment
Open

Automatically Title-Case Camel-Cased props #101

cda210 opened this issue Jan 18, 2022 · 1 comment

Comments

@cda210
Copy link

cda210 commented Jan 18, 2022

So to better enforce type safety in a project - a developer may want to say let's only allow a string that adheres to keyof some TYPE for OData operations $orderBy or $filter- the issue is that keys of some TYPE are usually camelCased, but OData wants prop names in TitleCase format. Does it make sense to enhance buildQuery to properly format a camelCased "key" into a valid odata prop name that is TitleCased?

@cda210
Copy link
Author

cda210 commented Jan 18, 2022

Any advice on strongly typing what can be filtered, for example, would be appreciated. This may not be an issue as I was able to pass in keyof and use the camelCase propName and get appropriate results.

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