-
Notifications
You must be signed in to change notification settings - Fork 32
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
SwagGen and update to LoadFromFile #6
base: master
Are you sure you want to change the base?
Conversation
Made TSwagDoc.LoadFromFile more relaxed about missing sections. Added code to include definitions in the LoadFromFile
Hi @rjmatthews62, |
@rjmatthews62
|
@rjmatthews62, |
@rjmatthews62, |
Re: TryGetValue, doesn't that end up calling itself? In that, isn't there already a TryGetValue in the main class? I must admit, helper classes are a feature I only just found (and I've been programming in Delphi for decades...!) so there may be some subtleties I missed. |
@rjmatthews62 TryGetValue in my proposal is overloaded and is calling another overload of itself passing different parameters. About SwagGen I would like it to be done with well-defined classes. Try to observe the SwagDoc code patterns such as class names, variables, spacing, indentations, methods, and more. Do you want to try to improve and send me an update of this PR? |
I have been working on a generator to create Delphi objects to consume and produce JSON payloads.
Whether or not you choose to include SwagGen in your main branch, you might want to cherry pick changes I made to the TSwagDoc.LoadFromFile, in that it is:
On a related note, are you planning at any time to refactor JSON.Commom.Helpers to JSON.Common.Helpers?
Anyway, thanks for making this project available.