feat: enhance Obsidian plugin schema with HeadingRef class

This commit is contained in:
Anish Sarkar 2026-04-22 20:26:58 +05:30
parent 1d324f169f
commit 6eeaa2db4d
4 changed files with 38 additions and 3 deletions

View file

@ -46,6 +46,7 @@ from app.schemas.obsidian_plugin import (
ConnectRequest,
DeleteAck,
DeleteBatchRequest,
HeadingRef,
ManifestResponse,
NotePayload,
RenameAck,
@ -74,6 +75,7 @@ def _make_note_payload(vault_id: str, path: str, content_hash: str) -> NotePaylo
name=path.rsplit("/", 1)[-1].rsplit(".", 1)[0],
extension="md",
content="# Test\n\nbody",
headings=[HeadingRef(heading="Test", level=1)],
content_hash=content_hash,
mtime=now,
ctime=now,