Skip to content

Commit a0d2304

Browse files
adamaltmanHCloward
andauthored
chore: Apply suggestions from code review
Co-authored-by: Heather Cloward <heathercloward@gmail.com>
1 parent 942d6da commit a0d2304

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

docs/commands/generate-arazzo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rbac:
88

99
# `generate-arazzo`
1010

11-
Auto-generate an Arazzo file based on an OpenAPI description file.
11+
Auto-generate an Arazzo description based on an OpenAPI description file.
1212

1313
If `examples` are provided in the OpenAPI description, they are used as input data for test requests.
1414
If `schema` is provided, the config generates fake data based on the description schema.
@@ -19,7 +19,7 @@ The `--extended` option also demonstrates how `respect` gets data from an OpenAP
1919

2020
{% admonition type="warning" %}
2121

22-
Given the nature of OpenAPI, the generated Arazzo file is not a complete test file and may not function. Dependencies between endpoints are not resolved.
22+
Given the nature of OpenAPI, the generated Arazzo description is not a complete test file and may not function. Dependencies between endpoints are not resolved.
2323

2424
It acts as a starting point for a test file and needs to be extended to be functional.
2525
{% /admonition %}

docs/commands/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Documentation commands:
99
- [`preview`](preview.md) Start a local preview of a Redocly project with one of the product NPM packages.
1010
- [`translate`](translate.md) Generate translation keys for a Redocly Realm, Reef, or Revel project.
1111
- [`eject`](eject.md) Eject and modify components from the core theme in a Redocly Realm, Reef, or Revel project.
12-
- [`preview-docs`](preview-docs.md) Preview API reference docs for the specified API description. Deprecated in the near future.
13-
- [`build-docs`](build-docs.md) Build API description into an HTML file. Deprecated in the near future.
12+
- [`preview-docs`](preview-docs.md) Preview API reference docs for the specified API description.
13+
- [`build-docs`](build-docs.md) Build API description into an HTML file.
1414

1515
API management commands:
1616

@@ -27,8 +27,8 @@ Linting commands:
2727
{% if includes($rbac.teams, "autheticated") %}
2828
Testing commands:
2929

30-
- [`respect`](respect.md) Execute API tests described in an Arazzo file.
31-
- [`generate-arazzo`](generate-arazzo.md) Generate an Arazzo file from an OpenAPI description.
30+
- [`respect`](respect.md) Execute API tests described in an Arazzo description.
31+
- [`generate-arazzo`](generate-arazzo.md) Generate an Arazzo description from an OpenAPI description.
3232
{% /if %}
3333

3434
Redocly platform commands:

docs/commands/respect.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rbac:
88

99
# `respect`
1010

11-
Use this command to execute API tests described in an Arazzo file.
11+
Use this command to execute API tests described in an Arazzo description.
1212
In addition to the Arazzo specification, `respect` supports specification extensions for API testing: `x-operation` and `x-serverUrl`.
1313

1414
## Usage
@@ -30,7 +30,7 @@ npx @redocly/cli respect <your-test-file | multiple files | files bash query> [-
3030
- -w, --workflow
3131
- [string]
3232
- Workflow names from the test file to run.
33-
For example, the following command runs "first-flow" and "second-flow" workflows from the "test-file.yaml" test file: `npx @redocly/cli respect test-file.yaml --workflow first-flow second-flow`
33+
For example, the following command runs "first-flow" and "second-flow" workflows from the "test-file.yaml" Arazzo description: `npx @redocly/cli respect test-file.yaml --workflow first-flow second-flow`
3434
{% admonition type="warning" %}
3535
The `--workflow` option can't be used with `--skip`.
3636
{% /admonition %}
@@ -40,48 +40,48 @@ npx @redocly/cli respect <your-test-file | multiple files | files bash query> [-
4040
- -s, --skip
4141
- [string]
4242
- Workflow names from the test file to skip.
43-
For example, the following command skips the "first-flow" workflow from the "test-file.yaml" test file: `npx @redocly/cli respect test-file.yaml --skip first-flow`
44-
{% admonition type="warning" %}
45-
Warning: the `--skip` option can't be used with `--workflow`.
43+
For example, the following command skips the "first-flow" workflow from the "test-file.yaml" Arazzo description: `npx @redocly/cli respect test-file.yaml --skip first-flow`
44+
{% admonition type="warning" name="Warning" %}
45+
The `--skip` option can't be used with `--workflow`.
4646
{% /admonition %}
4747

4848
---
4949

5050
- -v, --verbose
5151
- boolean
5252
- Runs the command in verbose mode to help with troubleshooting issues.
53-
For example, the following command runs all workflows from the "test-file.yaml" test file in verbose mode: `npx @redocly/cli respect test-file.yaml --verbose`
53+
For example, the following command runs all workflows from the "test-file.yaml" Arazzo description in verbose mode: `npx @redocly/cli respect test-file.yaml --verbose`
5454

5555
---
5656

5757
- --har-output
5858
- string
5959
- Path for the `har` file for saving logs.
60-
For example, the following command runs all workflows from the "test-file.yaml" test file and saves the logs to the "logs.har" file: `npx @redocly/cli respect test-file.yaml --har-output='logs.har'`
60+
For example, the following command runs all workflows from the "test-file.yaml" Arazzo description and saves the logs to the "logs.har" file: `npx @redocly/cli respect test-file.yaml --har-output='logs.har'`
6161

6262
---
6363

6464
- --json-output
6565
- string
66-
- Path for the 'json`file for saving logs. For example, the following command runs all workflows from the "test-file.yaml" test file and saves the logs to the "logs.json" file:`npx @redocly/cli respect test-file.yaml --json-output='logs.json'`
66+
- Path for the JSON file for saving logs. For example, the following command runs all workflows from the "test-file.yaml" Arazzo description and saves the logs to the "logs.json" file:`npx @redocly/cli respect test-file.yaml --json-output='logs.json'`
6767

6868
---
6969

7070
- --input
7171
- string
7272
- Input parameters with values that are mapped to the workflow inputs description.
73-
For example, the following command maps the "userEmail" and "userPassword" inputs and values to all workflows in the "test.yaml" test file: `npx @redocly/cli respect test.yaml --input userEmail=name@redocly.com --input userPassword=12345`.
73+
For example, the following command maps the "userEmail" and "userPassword" inputs and values to all workflows in the "test.yaml" Arazzo description: `npx @redocly/cli respect test.yaml --input userEmail=name@redocly.com --input userPassword=12345`.
7474
You can also use an environment variable to set the input, as in the following example: `REDOCLY_CLI_RESPECT_INPUT='userEmail=name@redocly.com,userPassword=12345' npm run cli respect test.yaml`
7575

76-
You can even include nested values, as in the following example command that maps the "nestedKey" input and value to all workflows in the "test-file.yaml" test file: `npx @redocly/cli respect test-file.yaml --input '{"key": "value", "nested": {"nestedKey": "nestedValue"}}'`.
76+
You can even include nested values, as in the following example command that maps the "nestedKey" input and value to all workflows in the "test-file.yaml" Arazzo description: `npx @redocly/cli respect test-file.yaml --input '{"key": "value", "nested": {"nestedKey": "nestedValue"}}'`.
7777
You can also use an environment variable to set the input, as in the following example: `REDOCLY_CLI_RESPECT_INPUT='{"key":"value","nested":{"nestedKey":"nestedValue"}}' npx @redocly/cli respect test-file.yaml`
7878

7979
---
8080

8181
- --server
8282
- string
8383
- Server overrides for the `sourceDescriptions` object.
84-
For example, the following command runs all workflows from the "test-file.yaml" test file and instead of using the server listed in the API description, uses the server at "https://test.com": `npx @redocly/cli respect test-file.yaml --server test=https://test.com`
84+
For example, the following command runs all workflows from the "test-file.yaml" Arazzo description and instead of using the server listed in the API description, uses the server at "https://test.com": `npx @redocly/cli respect test-file.yaml --server test=https://test.com`
8585

8686
You can also pass the server overrides as an environment variable, as in the following example:
8787
`REDOCLY_CLI_RESPECT_SERVER="test=https://test.com"`

0 commit comments

Comments
 (0)