-
Notifications
You must be signed in to change notification settings - Fork 219
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
Add Crystal #2199
Comments
Hi @dsisnero |
Is there a document that shows how to add a language? |
not today unfortunately as all languages available at this point have been implemented by internal contributors. But I can provide pointers on this conversation, the first step would be to implement the abstractions library for the language. Most importantly the:
from this first work we'll be able to know what models and request adapters need to look like, and start working on the generation side. If you want a better view of all the work that's required to get a language working end to end, you can look at all the swift issues Let me know if you have additional questions. |
I'm sympathetic to this effort, this is a small detail, but opened this: std-uritemplate/std-uritemplate#84 |
Thanks for the information. I am trying to figure out how to wrap the Parse node interface with the way Crystal libraries serialize JSON, YAML, etc. To serialize, and deserialize from Crystal - this is how it is usually done - a similar include Y JSON::Serializable
Anyone have any ideas, or should I just re-implement Crystal serialization by converting the java or csharp code? |
@dsisnero I think that:
would be the way to go, you can internally rely on the low-level primitives of Crystal ser/de but the exposed interface should be similar to what you find in C# and Java. |
A couple of principles to keep in mind:
This is why models implement the auto-serialization pattern (they describe how to serialize/deserialize themselves) |
Add Crystal Language generation -
The text was updated successfully, but these errors were encountered: