{"html_url": "https://github.com/simonw/datasette/issues/1798#issuecomment-1234925616", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1798", "id": 1234925616, "node_id": "IC_kwDOBm6k_c5Jm3gw", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-01T23:56:33Z", "updated_at": "2022-09-01T23:56:33Z", "author_association": "OWNER", "body": "Oh that's a classic YAML problem, I hadn't realized it would affect Datasette like this!\r\n\r\nYou should be able to fix it by quoting the `off` key like this:\r\n\r\n```yaml\r\ntitle: Some title\r\ndescription_html: |-\r\n

This is an experiment.

\r\ndatabases:\r\n \"off\":\r\n tables:\r\n products_from_owners:\r\n title: products_from_owners*\r\n description_html: |-\r\n

Description

\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1359557737, "label": "Parts of YAML file do not work when db name is \"off\""}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1798#issuecomment-1234925618", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1798", "id": 1234925618, "node_id": "IC_kwDOBm6k_c5Jm3gy", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-02T00:01:00Z", "updated_at": "2022-09-02T00:01:00Z", "author_association": "OWNER", "body": "There's a thread about this here, but it doesn't have any workaround that look to me like they would be worth applying: https://stackoverflow.com/questions/36463531/pyyaml-automatically-converting-certain-keys-to-boolean-values", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1359557737, "label": "Parts of YAML file do not work when db name is \"off\""}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1798#issuecomment-1234925621", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1798", "id": 1234925621, "node_id": "IC_kwDOBm6k_c5Jm3g1", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-02T00:01:47Z", "updated_at": "2022-09-02T00:01:47Z", "author_association": "OWNER", "body": "It's a nasty gotcha though. I'm inclined to add validation to Datasette that fails to start the server with an error if you attempt to start it with metadata that accidentally has a boolean where a database name is expected.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1359557737, "label": "Parts of YAML file do not work when db name is \"off\""}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1798#issuecomment-1234925975", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1798", "id": 1234925975, "node_id": "IC_kwDOBm6k_c5Jm3mX", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-09-02T00:02:53Z", "updated_at": "2022-09-02T00:02:53Z", "author_association": "OWNER", "body": "Here's a very old issue that suggests validating metadata:\r\n- https://github.com/simonw/datasette/issues/260", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1359557737, "label": "Parts of YAML file do not work when db name is \"off\""}, "performed_via_github_app": null}