Skip to content

docs(respect): fix incorrect CLI commands and filenames in guides #261

Open
kakakakakku wants to merge 2 commits intoRedocly:mainfrom
kakakakakku:fix-docs
Open

docs(respect): fix incorrect CLI commands and filenames in guides #261
kakakakakku wants to merge 2 commits intoRedocly:mainfrom
kakakakakku:fix-docs

Conversation

@kakakakakku
Copy link

What/Why/How?

Fix incorrect CLI commands and filenames in Respect guide documentation.

Reference

Testing

$ npx @redocly/cli preview
Previewing with @redocly/realm@0.130.4────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
🌐 Preview URL: http://127.0.0.1:40004────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✅ Status: No errors foundrting...30.4────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
📄 Total pages: 23rs foundrting...30.4────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
👀 Watching for changes...rting...30.4────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
👀 Watching for changes...rting...30.4
$ npx @redocly/cli respect auto-generated.arazzo.yaml --verbose
(snip)
  Summary for auto-generated.arazzo.yaml

  Workflows: 14 passed, 14 total
  Steps: 14 passed, 14 total
  Checks: 53 passed, 53 total
  Time: 9251ms


┌────────────────────────────────────────────────────────────────────┬────────────┬─────────┬─────────┬──────────┐
│ Filename                                                           │ Workflows  │ Passed  │ Failed  │ Warnings │
├────────────────────────────────────────────────────────────────────┼────────────┼─────────┼─────────┼──────────┤
│ ✓ auto-generated.arazzo.yaml                                       │ 14         │ 14      │ -       │ -        │
└────────────────────────────────────────────────────────────────────┴────────────┴─────────┴─────────┴──────────┘

Screenshots (optional)

N/A

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

```shell
npx @redocly/cli preview demo.yaml
npx @redocly/cli preview
```
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ npx @redocly/cli preview demo.yaml
redocly preview

Preview Redocly project using one of the product NPM packages.

Options:
      --version                    Show version number.                [boolean]
      --help                       Show help.                          [boolean]
      --product                    Product used to launch preview. Default is in
                                   ferred from project's package.json or 'realm'
                                    is used.
  [string] [choices: "redoc", "revel", "reef", "realm", "redoc-revel", "redoc-re
                                                              ef", "revel-reef"]
      --plan     [string] [choices: "pro", "enterprise"] [default: "enterprise"]
  -p, --port                       Preview port.        [number] [default: 4000]
  -d, --project-dir, --source-dir  Specifies the project content directory. The
                                   default value is the directory where the comm
                                   and is executed.      [string] [default: "."]
      --lint-config                Severity level for config file linting.
                             [choices: "warn", "error", "off"] [default: "warn"]

Unknown argument: demo.yaml

```

You'll find the output in a file named `auto-generated.yaml`. Take a moment to examine the test description and you will notice that each operation from the OpenAPI file now has a workflow entry like the following example:
You'll find the output in a file named `auto-generated.arazzo.yaml`. Take a moment to examine the test description and you will notice that each operation from the OpenAPI file now has a workflow entry like the following example:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ npx @redocly/cli generate-arazzo demo.yaml

  Generating Arazzo description...

Arazzo description auto-generated.arazzo.yaml successfully generated.
$ npx @redocly/cli respect auto-generated.yaml --verbose
ENOENT: no such file or directory '/Users/xxx/xxx/auto-generated.yaml'

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.

1 participant