Skip to content

Support absolute paths to generators in the forge command #171

@ms14981

Description

@ms14981

Tried to run the following command (on Git Bash):

openapi-forge forge <schema> C:\dev\open-api-forge\openapi-forge-java-initial

It gives the error:

<path>\openapi-forge\src\common\generatorResolver.js:36
    throw new Error(
          ^

Error: Generator URL C:devopen-api-forgeopenapi-forge-java-initial does not end with ".git", check that the URL points to a valid generator

There are a couple of things to consider here:

  • Will it be ambiguous whether a given argument is a relative path, an absolute path or a URL?
  • Does the schema argument support absolute paths? If not, should it?
  • Do the other commands support absolute paths? If not, should they?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions