home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 412299013

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/185#issuecomment-412299013 https://api.github.com/repos/simonw/datasette/issues/185 412299013 MDEyOklzc3VlQ29tbWVudDQxMjI5OTAxMw== 9599 2018-08-11T20:14:54Z 2018-08-11T20:14:54Z OWNER

I've been worrying about how this one relates to #260 - I'd like to validate metadata (to help protect against people e.g. misspelling license_url and then being confused when their license isn't displayed properly), but this issue requests the ability to add arbitrary additional keys to the metadata structure.

I think the solution is to introduce a metadata key called extra_metadata_keys which allows you to specifically list the extra keys that you want to enable. Something like this:

{ "title": "My title", "source": "Source", "source_url": "https://www.example.com/", "release_date": "2018-04-01", "extra_metadata_keys": ["release_date"] }

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
299760684  
Powered by Datasette · Queries took 1.122ms · About: github-to-sqlite