Skip to content

Validation script argument handling inconsistent with readme documentation #10

Description

@rosskettle

Expected Behaviour

JS validation script will run as documented in readme npm run validateFile ./schema.yaml <OpenAPI path>

Actual Behaviour

Fails due to mismatch between documentation and how args are handled in the code

Reproduce Scenario (including but not limited to)

try running the script as documented

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

validateFile(process.argv[1], process.argv[2])
should be
validateFile(process.argv[3], process.argv[2])
if it is to be consistent with docs. (wrong number arg numbers and out of order)

Logs taken while reproducing problem

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions