IoTone / TheShellProject

The Shell Project aims to build a viable general purpose blockchain written in Dlang, with attributes of security, ease of deployment, clear specification, ease of use for DAPPs, and multiple implementation interop
1 stars 1 forks source link

Generate api stubs for symbol in D #79

Open truedat101 opened 3 years ago

truedat101 commented 3 years ago

Using openapi we can generate api stubs in D

https://github.com/nemtech/symbol-openapi/releases

truedat101 commented 3 years ago

Note also: https://github.com/nemtech/symbol-openapi-generator

this is where the client sdks get generated. One approach might be to get D client libs integrated. Need to understand the approach.

truedat101 commented 3 years ago

I've explored the generator. It sort of works. In principle, the openapi generator cranks out the rest api and client. It can do it for TS, Java, or Python. I am surprised they don't have C++. Or Swift.

The generator for D obviously doesn't exist. Actually, there is no openapi generator for D. Shocking and not shocking. This ticks me off. I am tired of this kind of stuff. I filed a response to a ticket someone filed on the openapi project.

https://github.com/OpenAPITools/openapi-generator/issues/7277

I will post this to the D meetup "community" list that I maintain. That may attract some interest too. I have no idea about the scope. The scope might be huge or moderate. The fact that D doesn't have decent first class swagger or openapi support is somewhat limiting.

truedat101 commented 3 years ago

I've cross posted to the dlang community issues tracker: https://github.com/truedat101/dlang-sv-community/issues/68