Skip to content

fix(documents): pass description_html when constructing CreatePage - #10

Open
fidelix wants to merge 1 commit into
cpatrickalves:mainfrom
fidelix:fix/doc-create-description-html
Open

fix(documents): pass description_html when constructing CreatePage#10
fidelix wants to merge 1 commit into
cpatrickalves:mainfrom
fidelix:fix/doc-create-description-html

Conversation

@fidelix

@fidelix fidelix commented Aug 28, 2026

Copy link
Copy Markdown

Summary

  • CreatePage(name=title) crashed with a pydantic ValidationError because plane-sdk requires description_html (no default).
  • Pass description_html at construction: wrap --content in a paragraph tag when provided, otherwise use <p></p>.
  • Adds unit tests for both cases.

Fixes #6

Test plan

  • uv run pytest tests/ (184 passed)
  • planecli document create --title "Test doc" --content "hello" -p <project>
  • planecli document create --title "Empty body" -p <project>

Made with Cursor

plane-sdk requires description_html on CreatePage with no default, so
CreatePage(name=title) raised ValidationError before any HTTP call.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc create fails with pydantic ValidationError: CreatePage.description_html required

1 participant