https://github.com/clerk/clerk-http-client-ruby
https://github.com/clerk/clerk-http-client-ruby
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/clerk/clerk-http-client-ruby
- Owner: clerk
- Created: 2024-11-26T15:26:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-28T17:14:17.000Z (9 months ago)
- Last Synced: 2025-10-29T06:56:14.627Z (9 months ago)
- Language: Ruby
- Size: 2.06 MB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom OpenAPI Generator - Clerk Ruby
This project provides a custom OpenAPI Generator that extends the default Ruby generator to output model names in snake_case format.
## Building the Project
To build the project, run:
```bash
mvn clean install
mvn clean package
```
## Generating the Client
```bash
bin/generate
```
## Using the Generator ()
After building, you can use the generator with the following command:
```bash
java -jar target/custom-openapi-generator-1.0-SNAPSHOT.jar generate \
-g clerk-ruby \
-i https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2021-02-05.yml \
-o ./.generated
```
Or with Maven plugin:
```xml
org.openapitools
openapi-generator-maven-plugin
7.3.0
generate
${project.basedir}/src/main/resources/openapi.yaml
clerk-ruby
${project.build.directory}/generated-sources
org.example
custom-openapi-generator
1.0-SNAPSHOT
```
## Features
- Extends the default Ruby generator
- Converts model names to snake_case format
- Maintains all other Ruby generator features
- Handles acronyms and camelCase appropriately
## Example
If your OpenAPI specification has a model named `UserAccount`, it will be generated as `user_account.rb` instead of `UserAccount.rb`.