Skip to content

JSON Schema Inference #216

Closed Answered by criccomini
cpard asked this question in Q&A
Discussion options

You must be logged in to vote

I believe things are working now. I've made a bunch of changes since you ran your command (notably, implementing Recap's type spec in the Python library). Can you try re-running?

One thing to clarify: Recap currently only handles newline delimited JSON (akak ndjson or jsonl), which requires that each JSON object be on a single line. I'll open a GH issue to infer whether to treat JSON as ndjson or a single multi-line JSON object.

Anyway, I just ran:

pdm run recap schema /tmp/recap-test/test-subdir/bar.json

Against:

% cat /tmp/recap-test/test-subdir/bar.json
{  "anonymousId": "78c53c15-32a1-4b65-adac-bec2d7bb8fab",  "channel": "web",  "context": {    "campaign": {      "name": "sales campai…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by criccomini
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants