Repository navigation
Conversation
56b88ef to
5f1d747
Compare
coretl
left a comment
There was a problem hiding this comment.
Neat! This is looking pretty good
59a86e9 to
fdf2837
Compare
315bf60 to
35645e1
Compare
|
Some of the schema will allow additional fields if the given field has a key which doesn't contain dots. This means some documents, e.g |
Not necessarely but right off the bat I can't be certain. I wanted to try it out once this PR is completed, so to also review it myself to replicate the same steps. |
e699645 to
3524ac2
Compare
71a6d0d to
1c94d67
Compare
1c94d67 to
e0b0872
Compare
e0b0872 to
48a9986
Compare
coretl
left a comment
There was a problem hiding this comment.
Did I get this right, the source is now the JSON schemas rather than TypedDicts or BaseModels? Hmm, I'm not a big fan of writing JSON schemas by hand. Let's discuss offline...
|
|
||
| [project.scripts] | ||
| regenerate-schema = "event_model.documents.generate.__main__:main" | ||
| regenerate-documents = "event_model.generate.__main__:generate" |
There was a problem hiding this comment.
I wonder if we should be exposing this as a script, as it's only used internally to the module. Could we ditch this section and call this via python -m event_model.generate instead?
BaseModel to static jsonschema + TypedDictjsonschema to BaseModel + TypedDict
Closes #337