Jump to content

mvanrijnen

Members
  • Content Count

    455
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mvanrijnen

  1. mvanrijnen

    swagger help needed

    Its not that difficult, i have my own generator at the moment, only it generates code against our own restclient. But it's written just to make usable classes and client for us. And only implements at the moment whats needed for us, so i'm trying to determine the specs which the "public" would need, when creating a new one. If i see your comments, your still on swagger 2.x, and we are talking OpenApi 3.x. The .java would be needed if we (i) want to have a generator which fits the openapi toolchain. Generators List (openapi-generator.tech) Create a New Generator (openapi-generator.tech) But i'll see where i land, i go make what i think is necessary, inspect if SwagDog is a usable base, and give a sign when there is a minimum usable generator. From you i'l take for now ๐Ÿ™‚ : * selecting which API's should be generated or skipped, * idenifiying identical class. * ordering classes, automaticly or defined as override Why it takes a little bit time (actual time): * I do this in private (95%) * Gonna be first "public" repo on github * Have a ton of things to do at home/garden and garage,
  2. mvanrijnen

    swagger help needed

    Yes, ofcourse, can take a look at that, make a fork of that project. And create a generator which uses the same kind of mustache files as i mentioned. Project is only OpenApi v2.x, so also need to extend to v3.x Advantage is that then we are half way to also create the .java later. I see the .java solution in the longway as the best, because then it can be incorperated in the whole openapi toolchain. But for now, maybe a first expirment to create a mustache based generator on the project mentioned is the best to start. First client would be created with the standard rest-request component. (or maybe just straight indy http request). @David Schwartz Is the API you are using a public one? maybe you have an uri to it ?
  3. mvanrijnen

    swagger help needed

    Okay, started with uploading some old and new work to github. But after some research (followup from a tip from @sh17), we can go a few directions. 1. Create a generator in .java for Delphi. (we can fork the code and mustache templates for example from the c# generator and create delphi versions from them As the main work is done in the .java code, everyone can "easily" use the mustache templates to create a client against their own base rest-client ) Never done jave before ๐Ÿ˜ž 2. Continue with what i started now, implement the OpenApi (formeley Swagger) model in Delphi. This then could be used to generate the client from native delphi code. 3. ๐Ÿ™‚ Generate a generator in .java which generates some kind of inbetween code, usable for us Delphi developers. so we have WiP. (work in progress) The link to the C# Generator: Part1: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java Part2: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java The link to the C# mustache templates: openapi-generator/modules/openapi-generator/src/main/resources/csharp at master ยท OpenAPITools/openapi-generator (github.com)
  4. mvanrijnen

    10.4.2 LSP code completion error

    What hotfix, i did not get any mail from EMB about a hotfix, nor did i get it through our supplier. We don't hear anything, only, can you send a sample project for every bug we inject to QA at EMB. We do that, en then we hear nothing. How many individual issues about the LSP etc you want to see?
  5. mvanrijnen

    10.4.2 LSP code completion error

    the info is given by all the other RSP's about LSP etc, i see this as the only way to communicate with EMB.
  6. mvanrijnen

    10.4.2 LSP code completion error

    There are still issues with the LSP, ErrorInsight, CodeCompletion etc. See the list at: Issue Navigator - Embarcadero Technologies Please vote, a scream to EMB ๐Ÿ™‚ [RSP-33648] When are LSP, ErrorInsigh, CodeCompletion issues serious addressed ?? - Embarcadero Technologies
  7. It's about: GitHub - StockSharp/StockSharp: Algorithmic trading and quantitative trading open source platform to develop trading robots (stock markets, forex, crypto, bitcoins, and options). I want (maybe) use it for a custom trading bot, but it's Russian, so people heard about this, can it be trusted?
  8. mvanrijnen

    10.4.2 LSP code completion error

    If it really is influenced by the Windows build, or specific update, maybe report it to EMB?
  9. mvanrijnen

    StockSharp, anybody worked with this?

    Better question, anyone knows a framework like this for Delphi ?
  10. mvanrijnen

    FireDAC Array DML returning values from inserted records

    SO, i mean your stackoverflow topic
  11. mvanrijnen

    Embarcadero.com

    probably some youngster CSS junk ๐Ÿ™‚
  12. mvanrijnen

    FireDAC Array DML returning values from inserted records

    this links to this topic instead of SA ๐Ÿ™‚
  13. mvanrijnen

    10.4.2 LSP code completion error

    for me it does, sometimes it stops working. Because we work on VM's from 10.4.2 on, they are always on, when i end the workday i commit (svn) and close the rdp session. And sometimes, then the nextday it is not working. LSP is much better then older versions. Were in the VM's on Windows 10 20H2 Build 19042.867
  14. mvanrijnen

    10.4.2 LSP code completion error

    see: Windows 10 KB5001567 released to fix KB5000802 BSOD, printing issue (windowslatest.com)
  15. mvanrijnen

    Delphi Binance API program

    [code] SIGNED (TRADE and USER_DATA) Endpoint security SIGNED endpoints require an additional parameter, signature, to be sent in the query string or request body. Endpoints use HMAC SHA256 signatures. The HMAC SHA256 signature is a keyed HMAC SHA256 operation. Use your secretKey as the key and totalParams as the value for the HMAC operation. The signature is not case sensitive. totalParams is defined as the query string concatenated with the request body. [/code] see the: Use your secretKey as the key and totalParams as the value for the HMAC operation. Be very carefull with your secret key ! Also make sure, you have your computer/server synchronized with a timeserver. (and if i got it correct, you have to need the timestamp in UTC time, not local time). this had to be one post, sorry
  16. mvanrijnen

    Delphi Binance API program

    The creator of Delphi WebSockets Binance API (esegece.com) is also on this forum, find him or buy his product. (i think i gonna buy it for trading on binance)
  17. mvanrijnen

    I will be less active for a few weeks

    Being dutch living in the netherlands, i estimate a vaccin around Christmas ๐Ÿ™‚
  18. mvanrijnen

    swagger help needed

    Starting soon, but have todo a total rewrite, with the knowledge of the client at work in mind. Ideas are already there, there will be an swaggger (json) import, a standard baseclient to work with, and a possibility to generate against your own baseclients (self made or emb's). Will be working with some kind of template then. Already made a github repo for this, we can fill ideas overthere or here for starters first till the project is at a minimum usable level. I found a simular C# project which does this, maybe i fork that so i only have to create the delphi generator.
  19. mvanrijnen

    Running .Net Standard Assembly

    I find it always much more easier to just write the needed code in .Net, and expose the functionallity through a COM DLL to delphi;.
  20. mvanrijnen

    Min & Max

    i have a minmax and maxmin function ๐Ÿ™‚
  21. mvanrijnen

    Several F2084 Internal Error on Delphi 10.4.2

    maybe EMB has to do some more interaction with their customers. I don't find the "blogs" they promote not very useful as communication about problems with Delphi, it's more like commercial shit. (i unsubscribed the news from EMB because of the shitload of promotional material they send, but now i mis product updates ๐Ÿ™‚ )
  22. mvanrijnen

    Several F2084 Internal Error on Delphi 10.4.2

    Maybe EMB has to visit some clients, and see what the problems are. They then can send an engineer who (maybe) can figure out why some clients keep getting problems. The current system for the big problems there are is just not working at the moment (my feeling), too many big bugs keeps coming back, or are never resolved,.
  23. Somebody knows how to get the clients ip address from within a radserver resource method?
  24. mvanrijnen

    Remote desktop friendly

    And if we go to the documentation: Vcl.Forms.TApplication Methods - RAD Studio API Documentation (embarcadero.com) there is no link to: Vcl.Forms.TApplication.UpdateMetricSettings - RAD Studio API Documentation (embarcadero.com) @Embarcadero, update documentation please !, or do we have to guess the methods? ๐Ÿ˜‰
  25. mvanrijnen

    Remote desktop friendly

    here is some (old) explanation (don't know it's current though): winforms - Using .NET desktop application with DevExpress over Remote Desktop - Stack Overflow (someone known to all of us here, has responded there also back then : ) ).
ร—