We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4ed49f commit 1ce70deCopy full SHA for 1ce70de
packages/cw-schema-codegen/src/main.rs
@@ -63,7 +63,7 @@ where
63
bail!("Only schema version 1 is supported")
64
};
65
66
- schema.definitions.iter().try_for_each(|node| {
+ schema.definitions.iter().rev().try_for_each(|node| {
67
debug!("Processing node: {node:?}");
68
69
match language {
packages/cw-schema-codegen/tests/python_tpl.rs
@@ -160,6 +160,7 @@ fn assert_validity() {
160
let schema_output = schema
161
.definitions
162
.iter()
163
+ .rev()
164
.map(|node| {
165
let mut buf = Vec::new();
166
cw_schema_codegen::python::process_node(&mut buf, &schema, node).unwrap();
0 commit comments