[GH-ISSUE #190] Text that contains single and double quotes produces invalid YAML #143

Closed
opened 2026-03-02 11:47:04 +03:00 by kerem · 1 comment
Owner

Originally created by @skirmess on GitHub (Jun 1, 2024).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/190

I am using the hoarder server version 0.14.0.

Paste the following text in the the new item field

"hello world, how's it going"

This produces invalid YAML:

$ hoarder bookmarks list --list-id njk89ftpg0643vy5626wimxt
[
  {
    id: 'rxjf0qniaqfiusgqaroc7v8g',
    createdAt: 2024-06-01T13:18:07.000Z,
    title: null,
    archived: false,
    favourited: false,
    taggingStatus: 'success',
    note: null,
    tags: [],
    content: { type: 'text', text: `"hello world, how's it going"` }
  }
]

If you check it with https://www.yamllint.com/ you get:

Plain value cannot start with reserved character at line 11, column 36`

Originally created by @skirmess on GitHub (Jun 1, 2024). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/190 I am using the hoarder server version 0.14.0. Paste the following text in the the new item field `"hello world, how's it going"` This produces invalid YAML: ``` $ hoarder bookmarks list --list-id njk89ftpg0643vy5626wimxt [ { id: 'rxjf0qniaqfiusgqaroc7v8g', createdAt: 2024-06-01T13:18:07.000Z, title: null, archived: false, favourited: false, taggingStatus: 'success', note: null, tags: [], content: { type: 'text', text: `"hello world, how's it going"` } } ] ``` If you check it with [https://www.yamllint.com/](https://www.yamllint.com/) you get: `Plain value cannot start with reserved character ` at line 11, column 36`
kerem closed this issue 2026-03-02 11:47:04 +03:00
Author
Owner

@MohamedBassem commented on GitHub (Jun 9, 2024):

As mentioned in another issue, the output of the CLI is not meant to be a YAML. @kamtschatka added JSON support in github.com/hoarder-app/hoarder@cde97267a9. So if you want to get a parsable output, use --json.

<!-- gh-comment-id:2156799852 --> @MohamedBassem commented on GitHub (Jun 9, 2024): As mentioned in another issue, the output of the CLI is not meant to be a YAML. @kamtschatka added JSON support in https://github.com/hoarder-app/hoarder/commit/cde97267a90802c6a367aa61ff157983506deead. So if you want to get a parsable output, use --json.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#143
No description provided.