Skip to content

Commit adb9f32

Browse files
authored
Update to spec version af1e463 (#5)
* Update to specification af1e463 * Update jtd to 0.1.1
1 parent cd10424 commit adb9f32

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "jtd"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "A Rust implementation of JSON Type Definition"
55
authors = ["JSON Type Definition Contributors"]
66
edition = "2018"

src/validator.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,6 @@ impl Vm {
192192
self.pop_schema_token();
193193

194194
if !*additional {
195-
self.push_schema_token(if *has_required {
196-
"properties"
197-
} else {
198-
"optionalProperties"
199-
});
200-
201195
for name in obj.keys() {
202196
if parent_tag != Some(name)
203197
&& !required.contains_key(name)
@@ -208,8 +202,6 @@ impl Vm {
208202
self.pop_instance_token();
209203
}
210204
}
211-
212-
self.pop_schema_token();
213205
}
214206
} else {
215207
self.push_schema_token(if *has_required {

0 commit comments

Comments
 (0)