From 04faf76f6038644778a6dd6fad08157d2ff7cd38 Mon Sep 17 00:00:00 2001 From: anussel5559 Date: Sat, 7 Sep 2024 09:22:15 -0500 Subject: [PATCH] add-select: adjust dynamic selector shape and render flow, tests --- crates/slumber_core/src/collection/models.rs | 9 +- crates/slumber_core/src/http/query.rs | 9 +- crates/slumber_core/src/template.rs | 124 ++++++++++++++++-- crates/slumber_core/src/template/error.rs | 5 + crates/slumber_core/src/template/render.rs | 50 +++++-- .../src/view/component/queryable_body.rs | 2 +- slumber.yml | 7 +- 7 files changed, 173 insertions(+), 33 deletions(-) diff --git a/crates/slumber_core/src/collection/models.rs b/crates/slumber_core/src/collection/models.rs index c4a97fe3..58bdbf16 100644 --- a/crates/slumber_core/src/collection/models.rs +++ b/crates/slumber_core/src/collection/models.rs @@ -435,8 +435,13 @@ pub enum ChainSource { #[serde(rename_all = "snake_case", deny_unknown_fields, untagged)] pub enum SelectOptions { Fixed(Vec