Skip to content

Commit 9186014

Browse files
committed
add comment
1 parent 061b721 commit 9186014

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/definitions.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/// Definition / reference management
2+
/// Our definitions system is very similar to json schema's: there's ref strings and a definitions section
3+
/// Unlike json schema we let you put definitions inline, not just in a single '#/$defs/' block or similar.
4+
/// We use DefinitionsBuilder to collect the references / definitions into a single vector
5+
/// and then get a definition from a reference using an integer id (just for performance of not using a HashMap)
16
use std::collections::hash_map::Entry;
27

38
use pyo3::prelude::*;

0 commit comments

Comments
 (0)