Skip to content

Commit c2d1bfd

Browse files
committed
refactor: Remove hardcoded \ from JSON Schema output
1 parent 7b16c23 commit c2d1bfd

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/target
2-
CLAUDE.md

src/schema.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pub trait ToJsonSchema {
66
fn to_json_schema_document(&self) -> serde_json::Value {
77
let mut doc = serde_json::json!({
88
"$schema": "https://json-schema.org/draft/2020-12/schema",
9-
"$id": "https://example.com/schema",
109
"title": "Inferred Schema",
1110
"description": "Schema inferred by drivel from sample data"
1211
});
@@ -1001,7 +1000,6 @@ mod tests {
10011000
document["$schema"],
10021001
"https://json-schema.org/draft/2020-12/schema"
10031002
);
1004-
assert_eq!(document["$id"], "https://example.com/schema");
10051003
assert_eq!(document["title"], "Inferred Schema");
10061004
assert_eq!(
10071005
document["description"],

0 commit comments

Comments
 (0)