home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1302759174

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/1863#issuecomment-1302759174 https://api.github.com/repos/simonw/datasette/issues/1863 1302759174 IC_kwDOBm6k_c5NpocG 9599 2022-11-03T22:40:47Z 2022-11-03T22:40:47Z OWNER

I'm considering Pydantic for this, see: - https://github.com/simonw/datasette/issues/1882#issuecomment-1302716350

In particular the create_model() method: https://pydantic-docs.helpmanual.io/usage/models/#dynamic-model-creation

This would give me good validation. It would also, weirdly, give me the ability to output JSON schema. Maybe I could have this as the JSON schema for a row?

/db/table/-/json-schema

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