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

Firstclass CamelCase support #72

Closed
kirankumarkolli opened this issue Mar 11, 2019 · 4 comments
Closed

Firstclass CamelCase support #72

kirankumarkolli opened this issue Mar 11, 2019 · 4 comments
Assignees
Labels
feature-request New feature or request

Comments

@kirankumarkolli
Copy link
Member

Is your feature request related to a problem? Please describe.
Support CamelCase as first class construct in CosmoClient.

Describe the solution you'd like

  1. CamelCase as option in CosmosClientBuilder
  2. CustomSerializer and CamelCase are exclusive and can't co-exist
  3. Typed point operations will do CamelCase serialization
  4. Stream API will just pass through the payload (no conversion even if CamelCase is opted)
  5. LINQ will generate a cancelCases queries
  6. SPROC/UDF etc...: N/A and customer is expected to author them in CamelCase way.

Describe alternatives you've considered
Extended custom CosmosJsonSerializer can be used for point operations but will not be integrated into LINQ. LINQ extension can be a separate option but better abstraction to have it across CosmosClient.

Additional context
Add any other context or screenshots about the feature request here.

@kirankumarkolli kirankumarkolli added the feature-request New feature or request label Mar 11, 2019
@bchong95
Copy link
Contributor

@khdang What are your thoughts on this?

@kirankumarkolli
Copy link
Member Author

LINQ + CamelCase is an ask for quite some time.
Lets prioritize it with this scope.

@j82w
Copy link
Contributor

j82w commented Jul 19, 2019

Would it be better to expose some form of interface for a contract resolver that converts member info into json field name? That way it can be extended for other cases, and we can provide a default camel case version.

@kirankumarkolli
Copy link
Member Author

Below two PR's address this issue
#650 Enabling serialization customization through CosmosSerializerOptions
#716 Adding camel case serialization on LINQ query generation (#716)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants