Azure / azure-sdk-for-sap-odata

This repository serves as foundation to power SAP OData SDK development for .NET
MIT License
7 stars 3 forks source link

[QUESTION] Investigate Templated POCO Generation for other languages (TypeScript, NodeJs and Python) #17

Open WillEastbury opened 1 year ago

WillEastbury commented 1 year ago

Is your feature request related to a problem? Please describe.

Is this really of value anywhere else from ts? is there a point to create strictly typed classes and POxOs for duck typed and dynamically typed languages?

Describe the solution you'd like

Let the generator generate the POxOs Plain Old x Objects (DTO Mapping objects) for each language.

Describe alternatives you've considered

No response

Additional context

No response

WillEastbury commented 1 year ago

@lechnerc77 can you help us define if this makes sense to consider / implement ?

lechnerc77 commented 1 year ago

I am not a Python developer, so focusing on the JavaScript/TypeScript ecosystem: I think having a typed access available for TypeScript to the bindings would be a huge benefit for developers in this ecosystem. This is then also consistent with the foundation of this project, the SAP Cloud SDK that makes the life of developers easier as they also provide a typing for the TypeScript flavor of the SDK.

MartinPankraz commented 1 year ago

@lechnerc77 the foundation of this repos is not the SAP Cloud SDK. The second flavor here is. Your comment applies either way I think

lechnerc77 commented 1 year ago

@MartinPankraz You are right I mixed up the two repos 🤦. Apologize for that,

Nevertheless I want to stick to the baseline of the statement and would love to see support for typing when using TypeScript as the "spirit" of this SDK is the same as the one of the SAP Cloud SDK in the other repo where I have support in that area.

I think this should also work for Python when using data classes (see https://docs.python.org/3.10/library/dataclasses.html). But as I said, I am not a Python Dev, so maybe there is a better approach for that language.