Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reference property to context.report() for external documentation #1904

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ImBIOS
Copy link
Member

@ImBIOS ImBIOS commented Feb 13, 2025

Add the reference property to the context.report() method for external documentation links.

Fix #1052

  • Documentation: Update docs/custom-plugins/custom-rules.md to include the reference property in the context.report() method documentation.
  • New Rule: Add packages/core/src/rules/arazzo/reference-property.ts to implement a new rule for validating the reference property in the report object.
  • Rule Integration: Modify packages/core/src/rules/arazzo/index.ts to import and add the new reference-property rule to the existing rules.
  • Unit Tests: Add packages/core/src/rules/arazzo/__tests__/reference-property.test.ts to test the presence and format validation of the reference property and error reporting for missing or incorrect reference property.

Add the `reference` property to the `context.report()` method for external documentation links.

Fix Redocly#1052

* **Documentation**: Update `docs/custom-plugins/custom-rules.md` to include the `reference` property in the `context.report()` method documentation.
* **New Rule**: Add `packages/core/src/rules/arazzo/reference-property.ts` to implement a new rule for validating the `reference` property in the report object.
* **Rule Integration**: Modify `packages/core/src/rules/arazzo/index.ts` to import and add the new `reference-property` rule to the existing rules.
* **Unit Tests**: Add `packages/core/src/rules/arazzo/__tests__/reference-property.test.ts` to test the presence and format validation of the `reference` property and error reporting for missing or incorrect `reference` property.
@ImBIOS ImBIOS requested review from a team as code owners February 13, 2025 04:33
Copy link

changeset-bot bot commented Feb 13, 2025

⚠️ No Changeset found

Latest commit: cb15c26

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ImBIOS ImBIOS marked this pull request as draft February 13, 2025 04:33
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.

context.report(): add new property for external documentation
1 participant