fix: make wallet optional in CreateEvent for propose endpoint
Some checks failed
lint.yml / fix: make wallet optional in CreateEvent for propose endpoint (pull_request) Failing after 0s
Some checks failed
lint.yml / fix: make wallet optional in CreateEvent for propose endpoint (pull_request) Failing after 0s
The propose endpoint sets wallet from the authenticated user's invoice key. Making wallet optional in the model allows the request body to omit it. The admin create endpoint falls back to the auth wallet if not provided. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
41e64adfde
commit
32ea79a137
2 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class EventExtra(BaseModel):
|
|||
|
||||
|
||||
class CreateEvent(BaseModel):
|
||||
wallet: str
|
||||
wallet: Optional[str] = None
|
||||
name: str
|
||||
info: str
|
||||
closing_date: str
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue