You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scans a directory for `.json` files, infers type from each file’s content, and compares to the expected schema from the state file. Reports drift (type mismatches, missing required fields, new fields). Optionally updates state and regenerates models (autopatch).
302
+
Scans a directory for `.json`, `.ndjson`, and `.jsonl` files, infers type from each file’s content, and compares to the expected schema from the state file. Reports drift (type mismatches, missing required fields, new fields). Optionally updates state and regenerates models (autopatch).
302
303
303
304
```bash
304
305
pydanticforge monitor <directory> [OPTIONS]
@@ -348,7 +349,7 @@ Monitor exit codes:
348
349
349
350
### `diff` — Semantic diff between two model files
350
351
351
-
Parses two Python files containing Pydantic `BaseModel` classes and prints a semantic diff (added/removed classes and fields, required/optional and type changes), classified as breaking or non-breaking.
352
+
Parses two Python files containing Pydantic `BaseModel`or `RootModel`classes and prints a semantic diff (added/removed classes and fields, required/optional and type changes), classified as breaking or non-breaking.
@@ -612,7 +613,7 @@ Use the same `strict_numbers` when calling `join_types` (e.g. in monitor autopat
612
613
## Input and output formats
613
614
614
615
-**Stdin (watch / generate):** Newline-delimited JSON (NDJSON). Each line is one JSON value (object or array). If a line is an array, each element is treated as a separate sample.
615
-
-**Files:**`.json` files. Content can be a single JSON value (object or array) or NDJSON; arrays are expanded into one sample per element.
616
+
-**Files:**`.json`, `.ndjson`, and `.jsonl` files. Content can be a single JSON value (object or array) or NDJSON; arrays are expanded into one sample per element.
616
617
-**State file:** JSON file with `schema_version` and `root` (internal type graph). Do not edit by hand; use CLI or `save_schema_state` / `load_schema_state`.
617
618
-**JSON Schema:** Draft 2020-12 document import/export for state interop (`schema`, `generate`, `watch`, `monitor`).
0 commit comments