Skip to content

Commit

Permalink
Merge pull request #124 from ujex256/fix/notes-schema
Browse files Browse the repository at this point in the history
Fix NoteSchema.reaction_acceptance field
  • Loading branch information
YuzuRyo61 authored Jun 21, 2024
2 parents e97a974 + a0215c4 commit aa3b411
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion misskey/schemas/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ class NoteSchema(Schema):
local_only = fields.Boolean(data_key="localOnly")
reaction_acceptance = fields.Enum(
ReactionAcceptanceEnum,
required=True, data_key="reactionAcceptance", allow_none=True)
by_value=True,
required=True,
data_key="reactionAcceptance",
allow_none=True
)
# reactions = fields.Nested(... # TODO: TBD
renote_count = fields.Integer(required=True, data_key="renoteCount")
replies_count = fields.Integer(required=True, data_key="repliesCount")
Expand Down

0 comments on commit aa3b411

Please sign in to comment.