Skip to content

[BUG] Installation doc runs unrelated code with npx #4040

@hukka

Description

@hukka

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

Following the instructions at https://openapi-generator.tech/docs/installation, running npx openapi-generator generate -i petstore.yaml -g ruby -o /tmp/test/ will actually run code from
https://www.npmjs.com/package/openapi-generator, not https://www.npmjs.com/package/@openapitools/openapi-generator-cli.

This matches what npm would install with npm install --dry-run openapi-generator.

Suggest a fix

Remove npx from the instructions, or change it to use --package.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions