Skip to content

feat(cli): added parser arg - #2737

Closed
Thomas Haugland Rudfoss (rudfoss-rr) wants to merge 8 commits into
stoplightio:developfrom
rudfoss-rr:feat/cli/parser-arg
Closed

Thomas Haugland Rudfoss (rudfoss-rr) wants to merge 8 commits into
stoplightio:developfrom
rudfoss-rr:feat/cli/parser-arg

Conversation

@rudfoss-rr

@rudfoss-rr Thomas Haugland Rudfoss (rudfoss-rr) commented Nov 15, 2024 •

Copy link
Copy Markdown

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

If indicated yes above, please describe the breaking change(s).

Remove this quote before creating the PR.

Additional context

Suggestion for adding support for a parser argument to the CLI so that the appropriate parser can be selected for Json files.

@rudfoss-rr

Copy link
Copy Markdown
Author

Nauman (@mnaumanali94) I was having trouble fixing the commit message issues so I reopened a new PR instead. Sorry for the confusion. I've addressed the lint issues, but I'm having trouble getting all tests to work as well as adding appropriate tests of my own. Would love some help if you have time as I haven't worked with test-harness before and can't seem to get them to run locally in dev-container.

@mnaumanali94

Copy link
Copy Markdown
Contributor

Thomas Haugland Rudfoss (@rudfoss-rr) So to run harness tests you first need to build the binaries. For that cd into the package/cli folder and run yarn build.binary and then at the root level run yarn test.harness. Let us know if you run into issues!

@rudfoss-rr

Copy link
Copy Markdown
Author

Thomas Haugland Rudfoss (@rudfoss-rr) So to run harness tests you first need to build the binaries. For that cd into the package/cli folder and run yarn build.binary and then at the root level run yarn test.harness. Let us know if you run into issues!

Thanks! I've updated tests and attempted to add a few scenarios of my own, but was unable to completely rebuild the scenario tests using either test.harness, build or build.binary so I wasn't able to properly verify all scenarios locally. I'm guessing there is just some script I'm missing.

I now see that I've broken a few other tests, but I'm not sure exactly why. If you could have a look and point me in the right direction that would be great!

@rudfoss-rr Thomas Haugland Rudfoss (rudfoss-rr) closed this by deleting the head repository Jul 17, 2025
@sbstnkr

Copy link
Copy Markdown

Thomas Haugland Rudfoss (@rudfoss-rr) this hasn't been addressed, correct? I still see the warnings for \t in json files

@rudfoss-rr

Copy link
Copy Markdown
Author

Sebastian Krawczyk (@sbstnkr) Yes, that is right. But I was unable to get the tests working and had to move on to other work so I closed it to avoid polluting the project with a broken PR.

@sbstnkr

Copy link
Copy Markdown

Thomas Haugland Rudfoss (@rudfoss-rr) could you please create another PR? 🙏🏼

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants