-
Notifications
You must be signed in to change notification settings - Fork 159
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
feat: removed the type:none
sourceDescriptions Arazzo extension
#1773
Conversation
🦋 Changeset detectedLatest commit: 9affd5a The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
1e05f85
to
2a4af85
Compare
|
Coverage report
Show new covered files 🐣
Test suite run success811 tests passing in 122 suites. Report generated by 🧪jest coverage report action from 9affd5a |
c271f47
to
4eb39ad
Compare
I can fix the docs header but I thought we were holding off on adding docs until we were happy with how they were all shaping up in #1697 . Maybe we can make the code changes here, and put the docs over there? (where I will also revisit the section headers on the Arazzo rules docs) |
Also I can merge changes just to have rule described - so we can update docs later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rule works as expected and I agree it should be in our recommended set. I think we should remove the docs though since we haven't added other docs yet - could you transfer the new rule page into #1697?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply the changelog suggestion!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this. It seems like it could be part of the spec rule. What am I missing?
It is by the Spec rule:
|
Co-authored-by: Lorna Jane Mitchell <[email protected]>
packages/core/src/rules/arazzo/__tests__/sourceDescriptions-not-empty.test.ts
Outdated
Show resolved
Hide resolved
This can be also done as part of type function check
But error report is worse than having a rule, we don't have a way for proper line highlight and won't work well in the Editor: With the rule: @adamaltman , please clarify what variant would you prefer. |
@DmitryAnansky I think you're missing my point. It must be part of the spec rule. When the spec rule covers less and less of the spec we shouldn't even call it a spec rule then. Get my point? |
In current cli implementation of the rules - Please correct me if I am wrong @tatomyr , @RomanHotsiy |
@adamaltman moreover some of existing unique rules can't be defined in our |
@DmitryAnansky, yes, this is a limitation of the existing |
@tatomyr those were honest omissions. Mostly added as separate rules in the future for backwards compatibility reasons. We are not in that situation with Arazzo. @DmitryAnansky we should not start the day with technical debt. |
@adamaltman thanks for the clarification! |
Given this information, do we have enough information to move forward? |
@adamaltman I would like to discuss it with you quickly before we proceed. The problem is that the Sure, we can wrap up all the various spec-related checks under the
I think the better solution would be to:
This solution is a breaking change so I'm not suggesting doing it right now (or maybe?). I want to bring it up though so whatever we do right now is not blocking us in the future. Let's discuss it offline and decide? |
Yes, this is exactly what I was thinking (I like
And other configs like |
yes! |
@DmitryAnansky we discussed not to rename the spec rule but rather to start a similar The idea is that the struct rule is part of a ruleset that includes the |
Moving code changes to #1800 |
What/Why/How?
type:none
sourceDescriptions Arazzo extension.Reference
https://github.com/Redocly/redocly/issues/11343
Testing
Screenshots (optional)
Check yourself
Security