-
Notifications
You must be signed in to change notification settings - Fork 834
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
Fix #1428 Add rich_text classes to slack_sdk.models module #1431
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1431 +/- ##
==========================================
- Coverage 85.46% 85.43% -0.04%
==========================================
Files 111 111
Lines 11945 12114 +169
==========================================
+ Hits 10209 10349 +140
- Misses 1736 1765 +29 ☔ View full report in Codecov by Sentry. |
🔥🙏🏼🎉 |
@@ -604,3 +604,34 @@ def _validate_title_length(self): | |||
@JsonValidator(f"author_name attribute cannot exceed {author_name_max_length} characters") | |||
def _validate_author_name_length(self): | |||
return self.author_name is None or len(self.author_name) < self.author_name_max_length | |||
|
|||
|
|||
class RichTextBlock(Block): |
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'm still having an issue with the parsing of this block. Looks like it needs to be added here.
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.
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.
@tj-smith47 Thanks for pointing this out. Here is a PR to fix it: #1433 We will release a new version shortly
Summary
This pull request resolves #1428
Category (place an
x
in each of the[ ]
)/docs-src
(Documents, have you run./scripts/docs.sh
?)/docs-src-v2
(Documents, have you run./scripts/docs-v2.sh
?)/tutorial
(PythOnBoardingBot tutorial)tests
/integration_tests
(Automated tests for this library)Requirements (place an
x
in each[ ]
)python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.sh
after making the changes.