-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: copyedit, remove diagrams and page slugs, update for accuracy
- Loading branch information
1 parent
5517730
commit 7124c2a
Showing
16 changed files
with
59 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,21 @@ | ||
--- | ||
slug: /docs/cli/rules/arazzo/parameters-unique | ||
--- | ||
|
||
# parameters-unique | ||
|
||
Requires the `parameters` list not to include duplicate parameters. | ||
Requires unique values in the `parameters` lists. | ||
|
||
| Arazzo | Compatibility | | ||
| ------ | ------------- | | ||
| 1.0.0 | ✅ | | ||
|
||
```mermaid | ||
flowchart TD | ||
Root ==> workflows --> workflow --> parameters | ||
style Contact fill:#codaf9,stroke:#0044d4,stroke-width:5px | ||
``` | ||
|
||
```mermaid | ||
flowchart TD | ||
Root ==> x-parameters | ||
style Contact fill:#codaf9,stroke:#0044d4,stroke-width:5px | ||
``` | ||
|
||
```mermaid | ||
flowchart TD | ||
Root ==> workflows --> workflow --> steps --> step --> parameters | ||
## API design principles | ||
|
||
style Contact fill:#codaf9,stroke:#0044d4,stroke-width:5px | ||
``` | ||
A list of `parameters` that are applicable to a step or all the steps described in a workflow should not contain duplicates. | ||
If duplicates are present, unexpected parameter overrides could cause problems. | ||
Check failure on line 12 in docs/rules/arazzo/parameters-unique.md GitHub Actions / markdownlintTrailing spaces
|
||
|
||
## API design principles | ||
Checks parameter lists in the following locations: | ||
|
||
A list of `parameters` that are applicable to step or all steps described under workflow should not be duplicated to avoid shadow parameter override. | ||
- `workflows.[workflow].parameters` | ||
- `workflows.[workflow[.steps.[step].parameters` | ||
- `x-parameters` | ||
|
||
## Configuration | ||
|
||
|
@@ -60,7 +39,7 @@ arazzoRules: | |
parameters-unique: error | ||
``` | ||
Example of an **incorrect** license: | ||
Example of an **incorrect** parameters array: | ||
```yaml Object example | ||
workflows: | ||
|
@@ -74,7 +53,7 @@ workflows: | |
value: Basic Og== | ||
``` | ||
Example of a **correct** license: | ||
Example of a **correct** parameters array: | ||
```yaml Object example | ||
workflows: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.