{"html_url": "https://github.com/simonw/datasette/issues/713#issuecomment-608062899", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/713", "id": 608062899, "node_id": "MDEyOklzc3VlQ29tbWVudDYwODA2Mjg5OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-04-02T19:36:17Z", "updated_at": "2020-04-02T19:36:17Z", "author_association": "OWNER", "body": "Documentation: https://datasette.readthedocs.io/en/latest/metadata.html#using-yaml-for-metadata", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 592829135, "label": "Support YAML in metadata - metadata.yaml"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/713#issuecomment-608062703", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/713", "id": 608062703, "node_id": "MDEyOklzc3VlQ29tbWVudDYwODA2MjcwMw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-04-02T19:35:53Z", "updated_at": "2020-04-02T19:35:53Z", "author_association": "OWNER", "body": "https://github.com/simonw/datasette/blob/6717c719dd36dc2adc0f9da38a8c8e08129e96b4/datasette/utils/__init__.py#L795-L803", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 592829135, "label": "Support YAML in metadata - metadata.yaml"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/713#issuecomment-608023877", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/713", "id": 608023877, "node_id": "MDEyOklzc3VlQ29tbWVudDYwODAyMzg3Nw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-04-02T18:18:29Z", "updated_at": "2020-04-02T18:19:43Z", "author_association": "OWNER", "body": "Don't forget to fix the code in publish that loads and modifies metadata, e.g.:\r\n\r\nhttps://github.com/simonw/datasette/blob/2aaad72789c427875426673c1a43e67c86fc970e/datasette/utils/__init__.py#L361-L367\r\n\r\nAnd:\r\n\r\nhttps://github.com/simonw/datasette/blob/2aaad72789c427875426673c1a43e67c86fc970e/datasette/publish/heroku.py#L156-L168", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 592829135, "label": "Support YAML in metadata - metadata.yaml"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/713#issuecomment-608022801", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/713", "id": 608022801, "node_id": "MDEyOklzc3VlQ29tbWVudDYwODAyMjgwMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-04-02T18:16:23Z", "updated_at": "2020-04-02T18:16:23Z", "author_association": "OWNER", "body": "I'm going to try to parse as JSON first, then fall back to YAML, then error.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 592829135, "label": "Support YAML in metadata - metadata.yaml"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/713#issuecomment-608021760", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/713", "id": 608021760, "node_id": "MDEyOklzc3VlQ29tbWVudDYwODAyMTc2MA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-04-02T18:14:20Z", "updated_at": "2020-04-02T18:14:58Z", "author_association": "OWNER", "body": "I'm going to depend on ~=5.3 https://github.com/yaml/pyyaml/blob/master/CHANGES - though \r\nI could probably depend on a much wider set of versions (or maybe even no pinned minimum version at all).", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 592829135, "label": "Support YAML in metadata - metadata.yaml"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/713#issuecomment-608020485", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/713", "id": 608020485, "node_id": "MDEyOklzc3VlQ29tbWVudDYwODAyMDQ4NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-04-02T18:11:53Z", "updated_at": "2020-04-02T18:11:53Z", "author_association": "OWNER", "body": "I can add https://pypi.org/project/PyYAML/ as a dependency for this.\r\n\r\nOne open question: how best to tell the difference between a JSON and a YAML file? I'd rather not do it based on a file extension.\r\n\r\nSince I'm going to read the whole file into memory anyway (rather than try to stream it) and I only load it once at startup, maybe I try to parse with one and, if there's a parsing error, try the other one before giving up?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 592829135, "label": "Support YAML in metadata - metadata.yaml"}, "performed_via_github_app": null}