Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #254
Closed
Open
Issue created Jun 08, 2018 by Administrator@rootContributor

[Rails5] Ruby on Rails stub server requires MySQL but does not use it

Created by: ledsun

Description

The Ruby on Rails stub server requires MySQL. Its Gemfile includes line blew:

# Use mysql as the database for Active Record
gem 'mysql2', '>= 0.3.18', '< 0.5'

To start the Ruby on Rails stub server, we need to install MySQL in the development environment. However, the Ruby on Rails stub server does not use the database. I think this is a meaningless cost.

openapi-generator version

3.0.0

OpenAPI declaration file content or url

Any.

Command line used for generation
bin/rails5-petstore-server.sh
Steps to reproduce
bin/rails5-petstore-server.sh
Related issues/PRs

No.

Suggest a fix/enhancement

Switch the database to SQLite for Ruby on Rails stub server like: https://github.com/ledsun/openapi-generator/tree/rails_reduce_dependency

We can start the Ruby on Rails stub server in fewer steps.

Assignee
Assign to
Time tracking