Comments (10)
@ndbroadbent thanks for becoming a sponsor of openapi-generator.
Looking forward to your PR for the Crystal client generator. If you need help, please let me know.
from openapi-generator.
Hello! My company has just decided to support the Crystal language. We use openapi-generator, so I would love to work on this and release a Crystal API client for my service. I think it shouldn't be too difficult since the syntax is so similar to Ruby.
(I just realized that I should be supporting openapi-generator as well, so I've also set up a monthly donation on opencollect!)
I'm not sure how much time I can dedicate to this, but I can probably work on it during evenings and weekends. It will also be a great opportunity to learn more about the Crystal language. (I think Crystal would also be the perfect language for building a compiled CLI tool that people can use to interact with my API.)
from openapi-generator.
Hi, anyone working on this yet? I may be able to help
from openapi-generator.
@ddcprg I don't think anyone has started on this yet.
Do you mind PM'ing me on Slack so that we can formulate a plan?
from openapi-generator.
Similar to how some other generators (e.g. R, Lua, PowerShell) are created, we will use the reverse engineering process to create the Crystal client generator.
- create Crystal petstore client samples (implemented at least 2 endpoints to start with: getPetById, addPet)
- file a PR to put the client under
samples/client/petstore/crystal
- reverse engineer the templates and the generator (Java class)
- test the auto-generated code and revise the generator, templates
- alpha/beta release
Petstore spec:
- OAS v2: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml
- OAS v3: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml
from openapi-generator.
@ndbroadbent do you still want to go ahead and contribute this?
from openapi-generator.
Hi @ddcprg, sorry unfortunately I didn't have time to start working on this! Anyone else can please feel free to take over if you might be interested
from openapi-generator.
hi @ndbroadbent no problem, I'll try to take over then although is busy times for me as well
from openapi-generator.
I've filed #8304 to start with. add_pet
and get_pet_by_id
work and are tested as part of the CI.
It's not perfect. There's still a lot needs to be done and I'll create a TODO list later.
For the time being, please try it out and let me know if you've any feedback.
from openapi-generator.
Closed via #8304
from openapi-generator.
Related Issues (20)
- [BUG][PYTHON] Failed to lookup discriminator value using AllOf and discriminator
- Normalizer Function SIMPLIFY_ONEOF_ANYOF Broken In Version 7.5.0 HOT 3
- [BUG][PHP-NEXTGEN] Exception in thread "main" java.lang.RuntimeException: Could not process model HOT 1
- [REQ] Either vendor or use builtins for python generator
- [BUG] array parameters in FormData should not be join to string by csv
- [BUG][Spring] ReadOnly is ignored if the property is in a ref resource
- [BUG] openapi-yaml translates "NO" to false
- [BUG][JAVA] "jaxrs-spec" generator creates invalid nested enums with type number
- [BUG] Jackson dependency required when okhttp-gson is choosen
- [BUG] [JAVA] validateJsonElement failed when a field is decorated with both nullable and required HOT 1
- [BUG] [Java] Invalid code generation for oneof types. HOT 1
- [BUG] Description
- Attempt to create a cumulative fix for missing Object.h, AnyType.h, Set.h for many generators: can you give me some knowledge you have to help me correcting them? HOT 2
- [BUG][RUST] Parameter with empty schema produces invalid rust code HOT 1
- [BUG][RUST] oneOf with multiple arrays produces invalid rust code HOT 4
- [BUG] [JAVA] Array of oneOf should be possible to be empty
- [BUG] [Java] oneOf inception provides wrong output in toJson HOT 4
- [BUG] [PYTHON] Model property: required AND default NOT combinable HOT 2
- [BUG][CSharp] DateOnly deserialized as DateTime and fails HOT 2
- [BUG] [JAVA] Cannot use oneOf as query parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-generator.