Commit Graph

52 Commits

Author SHA1 Message Date
Dmytro Anansky
58abf6fed4 feat: adding spot arazzo rules (#1713) 2024-09-09 15:42:04 +03:00
volodymyr-rutskyi
7a0e52f57e feat: add support for a plugin interface common with Realm (#1661) 2024-08-21 14:23:02 +03:00
Andrew Tatomyr
f6cce633d0 feat: add ability to exclude some operations from security-defined rule (#1570) 2024-05-29 09:13:24 +03:00
Andrew Tatomyr
7a496684fa docs: clarify the use of the where section in configurable rules (#1538) 2024-05-20 15:06:34 +03:00
romana-la
875dfa8d8b docs: replace relative links leading outside of the directory (#1515)
Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
2024-05-08 11:15:57 +01:00
Heather Cloward
8cda648ef6 removed two links to yaml spec as the site is down and it is breaking our preview builds in the marketing site (#1485) 2024-03-15 14:51:22 -04:00
Andrew Tatomyr
36f33c65b5 docs: fix the no-empty-servers slug typo (#1475) 2024-03-07 21:02:42 +02:00
Andrew Tatomyr
f7331f7832 docs: update the no-required-schema-properties-undefined rule description (#1446) 2024-02-21 13:31:04 +02:00
Mateusz Lis
1f1ec5c163 docs: no-required-schema-properties-undefined markdown docs (#1417) 2024-02-13 16:53:09 +02:00
Lorna Jane Mitchell
caa223dce3 docs: fix an incorrectly-formatted table in the custom function docs for configurable rules (#1414) 2024-01-29 14:33:21 +02:00
Andrew Tatomyr
7c7198d72e docs: correct description of multiline patterns usage based on #1353 (#1380) 2024-01-04 12:56:50 +02:00
Lorna Jane Mitchell
574541f12e docs: Add a note about expected newlines in multiline markdown fields (#1372) 2024-01-02 11:17:36 +00:00
Lorna Jane Mitchell
88cd624d7a Docs updates spotted when crafting Advent content (#1346)
* docs: Fix typo and remove reference to feature we're planning to drop

* docs: re-word the rule explanation, add link to operationId blog post

* docs: simplify rule description, pick more relevant related rules to link to

* docs: simplify kebab-case explanation
2023-12-04 12:02:01 +00:00
Lorna Jane Mitchell
c6831826d4 docs: Add a cookbook mention to the configurable rules page (#1341)
* docs: Add a cookbook mention to the configurable rules page

* chore: Run prettier.
2023-11-28 10:12:25 +00:00
Ihor Karpiuk
efb6a453f5 feat: create new rule to enforce array parameters format (#1338) 2023-11-24 16:18:58 +02:00
Lorna Jane Mitchell
afb5d9425f docs: Update docs tooling and checks (#1330)
* fix: Remove github token with incorrect access

* docs: Improve uninstall CTA in migration guide

* fix: Update checkout action version for vale

* docs: Vale reports errors in any edited file

* docs: Update to make Vale happy

* docs: Markdownlint fixes

* fix: Remove sync actions as this integration is no longer used

* core: Add markdownlint config and github action

Uses rules from https://github.com/Redocly/marketing-site-portal/pull/1142

* chore: Move contributing file to top level

* chore: Add markdown to the file types that we want prettier to operate on

* fix: Make files fit prettier rules, ignore LICENSE since we can't change that

* chore: Combine docs-related workflows into one for simplicity

* docs: Add instructions for running the CLI docs standalone from this repo

* chore: Add changeset, this docs change is quite large

* Update .changeset/bright-steaks-walk.md

Co-authored-by: Ihor Karpiuk <106662428+IgorKarpiuk@users.noreply.github.com>

---------

Co-authored-by: Ihor Karpiuk <106662428+IgorKarpiuk@users.noreply.github.com>
2023-11-20 16:00:32 +00:00
Lorna Jane Mitchell
de80612b55 chore: Run prettier on all docs files (#1334) 2023-11-17 09:45:03 +00:00
redocly-bot
d008291a32 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-11-09 15:56:27 +00:00
redocly-bot
eadf29f6a8 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-11-03 15:28:27 +00:00
Andrew Tatomyr
4620f79f29 feat: add built-in recommeded-strict ruleset (#1311) 2023-10-26 15:07:19 +03:00
Jeremy Fiel
fcae48e9f4 fix(docs): update example (#1281) 2023-10-19 10:54:11 +02:00
redocly-bot
1280b08336 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-10-18 14:49:40 +00:00
redocly-bot
9199b2bab7 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-10-09 16:35:49 +00:00
Adam Altman
0a73f1f557 refactor: rename to API description for consistency (#1239) 2023-09-18 15:22:26 +02:00
Arif Kurkchi
cb7e3edf42 feat: add ignoreCase for tags-alphabetical rule (#1258) 2023-09-13 12:18:07 +02:00
Lorna Jane Mitchell
daf030b7a8 Custom plugin documentation (#1222)
* Remove extra 'resources' landing page, redirect from main one

* Move custom plugins file to its own directory, add redirect to handle

* docs: split the custom plugins page into one page per feature

* docs: extend decorators explanation and link to it from the custom plugins section

* docs: Fix all the links that were broken when I moved things

* Apply excellent suggestions from code review

Co-authored-by: Heather Cloward <heathercloward@gmail.com>

* docs: Add examples of how to use the custom rule

* docs: Replace the nested visitor example with an object rather than a function

* Update custom-rules.md

minor consistency edits

* Apply suggestions from code review

Co-authored-by: Heather Cloward <heathercloward@gmail.com>

* docs: clearer explanation of skip, and finish a broken sentence

* Update docs/custom-plugins/index.md

Co-authored-by: Heather Cloward <heathercloward@gmail.com>

* Apply suggestions from code review

Co-authored-by: Adam Altman <adam@redoc.ly>

* docs: use object rather than function for visitor

---------

Co-authored-by: Heather Cloward <heathercloward@gmail.com>
Co-authored-by: Adam Altman <adam@redoc.ly>
2023-08-16 14:26:56 +01:00
Yaroslav Shuhailo
cfa31330b0 docs: fix typo in 'where' example (#1206) 2023-08-02 18:24:03 +03:00
Andrew Tatomyr
dcf4c0fd4f docs: add rule source for the component-name-unique rule description (#1156) 2023-07-06 17:17:30 +02:00
Patrick Boos
63067e9d0d Feature: Add component-name-unique rule (#1134) 2023-07-03 15:10:00 +02:00
Ihor Karpiuk
fba8990251 docs: add docs for spec-strict-refs rule (#1118) 2023-06-07 11:22:26 +03:00
Lorna Jane Mitchell
909fb471ca Add Vale for prose linting (#1099)
* feat: Add Vale configuration and rules

* docs: Fix top-level files to match Vale rules

* docs: Vale updates for the commands docs

* docs: apply Vale updates to the decorator docs

* docs: Update guides to match Vale rules

* docs: update rules and other content to meet Vale standards

* docs: add Vale link and information to CONTRIBUTING

* feat: Add GitHub action for Vale

* docs: minor editing to readme.md

* docs: minor editing to the changelog.md file

* docs: minor edits to the join.md file in commands folder

* docs: minor edits to lint.md file in the commands directory

* docs: minor edit to the login.md file in the commands directory

* docs: minor edits to the preview.md file in the commands directory

* docs: minor edits to push.md file in the comands directory

* docs: minor edits to the info-description-override.md file in the decorators directory

* docs: minor edits to the configure-rules.md file in the guides directory

* docs: minor edits to custom-plugin.md file in the resources directory

* docs: minor editing to the no-http-verbs-in-paths.md file in the rules directory

---------

Co-authored-by: Heather Cloward <heathercloward@gmail.com>
2023-06-01 10:10:43 +01:00
Lorna Jane Mitchell
3e287a80eb feat: support rule/ as a prefix for configurable rules (#1062)
* feat: support rule/ as a prefix for configurable rules

* chore: Run prettier

* feat: Add a warning about use of the old syntax

* docs: update configurable rules doc to reflect updated rule/ notation

* Update packages/core/src/config/config-resolvers.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* chore: run prettier

* chore: move deprication warning inside config transformer

---------

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
2023-05-30 09:57:30 +01:00
redocly-bot
7f8a2e71c0 sync: Synced local 'docs/' with remote 'docs/cli/' 2023-05-10 18:51:45 +00:00
Lorna Jane Mitchell
0455569a39 Docs: top-level refresh and restructure (#1043)
* docs: Start with a more developer and purpose oriented landing page

* docs: Clear installation options, autocomplete is a separate guide

* docs: update links in installation guide

* docs: Move update instructions to be a guide, remove local installation

* docs: Remove git documentation from starter project

* docs: Add a quicker quickstart

* docs: Re-organise and flesh out commands page

* docs: add built-in ruleset docs, add concept, start guide

* docs: Add a guide for configuring linting

* Docs: rename custom rules to assertions

* docs: Sort assertion docs and examples alphabetically

* docs: clearer linting explanations and signposting of rule types

* Apply suggestions from code review

Co-authored-by: Adam Altman <adam@redoc.ly>

* docs: Remove reference to a  config object, after user confusion

* docs: Add docs-building entrypoint article

* docs: Add one-line descriptions alongside rule names

* fix: Correct images for docs overview page

* docs: Link to custom function in custom plugin docs

* fix: Links in rules need updating after this file moved

* docs: Add concept article for openapi file wrangling

* docs: assertions are now called configurable rules

* fix: Broken links and a renamed file

* docs: Titles, links, and restructuring

* Apply suggestions from code review

Co-authored-by: Adam Altman <adam@redoc.ly>

* fix: Redirect for renamed CLI update guide

* Apply suggestions from code review

Co-authored-by: Adam Altman <adam@redoc.ly>

* chore: reduce filesize of images

* docs: Detangle the custom/configurable rules vs assertions confusion

* fix: labels as well as links to configurable rules

* Update docs/guides/configure-rules.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* fix: Better example wording and fix title case

* Update docs/commands/index.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update docs/rules/recommended.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update docs/quickstart.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update docs/rules.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* chore: rename file built-in-rules.md and corresponding links (#1075)

---------

Co-authored-by: Adam Altman <adam@redoc.ly>
2023-05-10 17:40:59 +01:00
Yevhen Smoliy
a7e7f707ac docs: add docs for reworked assertionFn and new rule (#1030) 2023-04-06 18:06:28 +03:00
Anton Kozachuk
becd1c859d feat: add an option to include webhooks to operation-4xx-response rule (#990) 2023-01-12 15:37:46 +02:00
Anton Kozachuk
83b3e1b3d9 feat: add support for any type in assertions (#948) 2022-11-29 09:10:45 +01:00
Roman Hotsiy
1d89a8de70 feat: new assert notPattern (#942) 2022-11-19 02:40:31 +08:00
redocly-bot
7d065a97c1 sync: Synced local 'docs/' with remote 'docs/cli/' 2022-11-05 08:33:53 +00:00
Adam Altman
9cad7e2e8d docs: rework assertions into custom rules (#917) 2022-11-02 06:58:54 -05:00
Adam Altman
fcdd782d18 refactor: rename four types (#906)
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
2022-10-10 15:36:35 -05:00
Ivan Osypov
a3f955768b feat: support for custom assertions functions (#837)
* feat: support for custom assertions functions

* Comment

* Prettier fix

* Add test and doc

* Prettier fix

* Update .redocly.yaml

* Update packages/core/src/config/types.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* fix: show 'referenced from' in the lint error message

* Add Prettier changes

* Add e2e and change format

* Fixes after cross review

* Fixes after cross review

* Fixes after cross review

* Change custom assertion syntax

* Update test

* add unit test

* Add assertion to test

* Update packages/core/src/config/config-resolvers.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Update packages/core/src/config/types.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Update packages/core/src/rules/common/assertions/asserts.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Update packages/core/src/types/redocly-yaml.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Update packages/core/src/config/config-resolvers.ts

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>

* Remove console.lo

* Fix types

* fix prettier

* fix prettier

* change assertion return type

* Group assertions message

* Change assertions logic

* Update docs/rules/assertions.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update docs/rules/assertions.md

Co-authored-by: Adam Altman <adam@redoc.ly>

* Update documentation

* Update test

* fix comments

* Fix comments

* Fix assertId

* fix tests

* Fix tests

* Documentation update

* Update doc

* Fix comments

* Update snapshots

* Update code

* update assets messages

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
Co-authored-by: Anton Kozachuk <antonkozachuk@Antons-MacBook-Pro.local>
Co-authored-by: Adam Altman <adam@redoc.ly>
2022-09-20 19:42:14 +03:00
Andrew Tatomyr
2401c2ef89 chore: rename master to main (#870) 2022-09-14 14:56:21 +02:00
Ihor Karpiuk
7f9d0def85 docs: add documentation for spec-components-invalid-map-name rule (#845) 2022-09-14 10:34:45 +03:00
redocly-bot
e0c57206f3 sync: Synced local 'docs/' with remote 'docs/cli/' 2022-09-13 17:43:59 +00:00
Anton Kozachuk
7b8f370484 fix: security-defined rule (#862) 2022-09-13 12:24:03 +03:00
Andrew Tatomyr
890ba5f533 chore: rename DefinitionRoot -> Root (#852) 2022-09-12 14:02:43 +02:00
Ivan Osypov
a879b665fc Feat: add rfc7807 rule (#816)
* Feat: add rfc7807 rule

* Fix lint problems

* Add tests

* Update packages/core/src/rules/oas3/operation-4xx-problem-details-rfc7807.ts

Co-authored-by: Adam Altman <adam@redoc.ly>

* Fix test

* Add rule to all rules

* Add documentation

* Change operation severity by default

* Updated accorting comments

* fix doc

* Update tests

* rules.md

* Updated rules.md

* Updated rules.md

* docs: minor docs corrections

* Add e2e test

Co-authored-by: Adam Altman <adam@redoc.ly>
2022-08-31 12:12:21 +03:00
Adam Altman
9b1239c6d9 fix: rename rule no-empty-enum-servers to no-server-variables-empty-enum (#813)
* fix: rename rule no-empty-enum-servers to no-server-variables-empty-enum
- fix no-server-example.com docs

* chore: fix snapshots

Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
2022-08-18 08:07:10 -05:00
Ihor Karpiuk
229f54222b chore: v1.0.0-beta.107 (#807) 2022-08-16 17:08:19 +03:00