optify 0.10.2__tar.gz → 0.10.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. {optify-0.10.2 → optify-0.10.3}/PKG-INFO +1 -1
  2. {optify-0.10.2 → optify-0.10.3}/pyproject.toml +2 -2
  3. {optify-0.10.2 → optify-0.10.3}/python/optify/Cargo.lock +85 -8
  4. {optify-0.10.2 → optify-0.10.3}/python/optify/Cargo.toml +2 -2
  5. {optify-0.10.2 → optify-0.10.3}/rust/optify/Cargo.toml +5 -4
  6. {optify-0.10.2 → optify-0.10.3}/rust/optify/benches/get_all_options_benchmark.rs +5 -2
  7. {optify-0.10.2 → optify-0.10.3}/rust/optify/benches/get_options_benchmark.rs +6 -3
  8. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/builder_impl.rs +45 -14
  9. {optify-0.10.2 → optify-0.10.3}/LICENSE.txt +0 -0
  10. {optify-0.10.2 → optify-0.10.3}/README.md +0 -0
  11. {optify-0.10.2 → optify-0.10.3}/optify/__init__.py +0 -0
  12. {optify-0.10.2 → optify-0.10.3}/optify/optify.pyi +0 -0
  13. {optify-0.10.2 → optify-0.10.3}/optify/py.typed +0 -0
  14. {optify-0.10.2 → optify-0.10.3}/python/optify/.gitignore +0 -0
  15. {optify-0.10.2 → optify-0.10.3}/python/optify/.vscode/settings.json +0 -0
  16. {optify-0.10.2 → optify-0.10.3}/python/optify/LICENSE.txt +0 -0
  17. {optify-0.10.2 → optify-0.10.3}/python/optify/README.md +0 -0
  18. {optify-0.10.2 → optify-0.10.3}/python/optify/src/lib.rs +0 -0
  19. {optify-0.10.2 → optify-0.10.3}/python/optify/src/preferences.rs +0 -0
  20. {optify-0.10.2 → optify-0.10.3}/python/optify/src/provider.rs +0 -0
  21. {optify-0.10.2 → optify-0.10.3}/python/optify/src/watcher.rs +0 -0
  22. {optify-0.10.2 → optify-0.10.3}/python/optify/tests/test_builder.py +0 -0
  23. {optify-0.10.2 → optify-0.10.3}/python/optify/tests/test_dacite.py +0 -0
  24. {optify-0.10.2 → optify-0.10.3}/python/optify/tests/test_optify.py +0 -0
  25. {optify-0.10.2 → optify-0.10.3}/python/optify/tests/test_provider.py +0 -0
  26. {optify-0.10.2 → optify-0.10.3}/python/optify/tests/test_pydantic.py +0 -0
  27. {optify-0.10.2 → optify-0.10.3}/rust/Cargo.toml +0 -0
  28. {optify-0.10.2 → optify-0.10.3}/rust/optify/README.md +0 -0
  29. {optify-0.10.2 → optify-0.10.3}/rust/optify/benches/caching_benchmark.rs +0 -0
  30. {optify-0.10.2 → optify-0.10.3}/rust/optify/benches/loading_benchmark.rs +0 -0
  31. {optify-0.10.2 → optify-0.10.3}/rust/optify/build.rs +0 -0
  32. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/builder_options.rs +0 -0
  33. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/builder_trait.rs +0 -0
  34. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/extract_configurable_string_files_from_config.rs +0 -0
  35. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/extract_files_from_config.rs +0 -0
  36. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/get_canonical_feature_name.rs +0 -0
  37. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/get_supported_extensions.rs +0 -0
  38. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/loading_result.rs +0 -0
  39. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/mod.rs +0 -0
  40. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/builder/watcher_builder.rs +0 -0
  41. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/configurable_string/configurable_string_impl.rs +0 -0
  42. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/configurable_string/mod.rs +0 -0
  43. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/configurable_values/configurable_list_impl.rs +0 -0
  44. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/configurable_values/locator.rs +0 -0
  45. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/configurable_values/mod.rs +0 -0
  46. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/json/escape_json_pointer.rs +0 -0
  47. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/json/merge.rs +0 -0
  48. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/json/mod.rs +0 -0
  49. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/json/reader.rs +0 -0
  50. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/lib.rs +0 -0
  51. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/provider/constraints.rs +0 -0
  52. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/provider/get_options_preferences.rs +0 -0
  53. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/provider/mod.rs +0 -0
  54. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/provider/provider_impl.rs +0 -0
  55. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/provider/provider_trait.rs +0 -0
  56. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/provider/watcher.rs +0 -0
  57. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/provider/watcher_options.rs +0 -0
  58. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/schema/conditions.rs +0 -0
  59. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/schema/feature.rs +0 -0
  60. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/schema/metadata.rs +0 -0
  61. {optify-0.10.2 → optify-0.10.3}/rust/optify/src/schema/mod.rs +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: optify
3
- Version: 0.10.2
3
+ Version: 0.10.3
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -26,11 +26,11 @@ build-backend = "maturin"
26
26
 
27
27
  [package]
28
28
  name = "optify"
29
- version = "0.10.2"
29
+ version = "0.10.3"
30
30
 
31
31
  [tool.poetry]
32
32
  name = "optify"
33
- version = "0.10.2"
33
+ version = "0.10.3"
34
34
  description = "Simplifies getting the right configuration options for a process using pre-loaded configurations from files to manage options for experiments or flights."
35
35
  authors = ["Justin D. Harris"]
36
36
  maintainers = ["Justin D. Harris"]
@@ -351,6 +351,15 @@ version = "0.2.0"
351
351
  source = "registry+https://github.com/rust-lang/crates.io-index"
352
352
  checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
353
353
 
354
+ [[package]]
355
+ name = "form_urlencoded"
356
+ version = "1.2.2"
357
+ source = "registry+https://github.com/rust-lang/crates.io-index"
358
+ checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
359
+ dependencies = [
360
+ "percent-encoding",
361
+ ]
362
+
354
363
  [[package]]
355
364
  name = "fraction"
356
365
  version = "0.15.4"
@@ -416,6 +425,15 @@ name = "hashbrown"
416
425
  version = "0.16.1"
417
426
  source = "registry+https://github.com/rust-lang/crates.io-index"
418
427
  checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
428
+ dependencies = [
429
+ "foldhash",
430
+ ]
431
+
432
+ [[package]]
433
+ name = "hashbrown"
434
+ version = "0.17.1"
435
+ source = "registry+https://github.com/rust-lang/crates.io-index"
436
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
419
437
  dependencies = [
420
438
  "allocator-api2",
421
439
  "equivalent",
@@ -599,9 +617,9 @@ dependencies = [
599
617
 
600
618
  [[package]]
601
619
  name = "jsonschema"
602
- version = "0.46.5"
620
+ version = "0.48.5"
603
621
  source = "registry+https://github.com/rust-lang/crates.io-index"
604
- checksum = "6a5fe5206f06e589caf25e79fc05ccdf91fca745685fe9fe1a13bbdfb479a631"
622
+ checksum = "f05a6cff806294a7699d48761d4ae2bdebab7fa2eef05e4a0b83320f0ff46901"
605
623
  dependencies = [
606
624
  "ahash",
607
625
  "bytecount",
@@ -612,18 +630,43 @@ dependencies = [
612
630
  "getrandom 0.3.4",
613
631
  "idna",
614
632
  "itoa",
633
+ "jsonschema-regex",
634
+ "jsonschema-value",
615
635
  "num-cmp",
616
636
  "num-traits",
617
637
  "percent-encoding",
618
638
  "referencing",
619
639
  "regex",
620
- "regex-syntax",
621
640
  "serde",
622
641
  "serde_json",
642
+ "strum",
623
643
  "unicode-general-category",
624
644
  "uuid-simd",
625
645
  ]
626
646
 
647
+ [[package]]
648
+ name = "jsonschema-regex"
649
+ version = "0.48.5"
650
+ source = "registry+https://github.com/rust-lang/crates.io-index"
651
+ checksum = "84708dd3f6c5327478a96f37378adb27deed6a626cf84d19de780d9e8ae84b17"
652
+ dependencies = [
653
+ "regex-syntax",
654
+ ]
655
+
656
+ [[package]]
657
+ name = "jsonschema-value"
658
+ version = "0.48.5"
659
+ source = "registry+https://github.com/rust-lang/crates.io-index"
660
+ checksum = "fd8c04ab4ce60e42c4e302d3bd9d184652bb56f212495d2eea23573bcbf72556"
661
+ dependencies = [
662
+ "ahash",
663
+ "bytecount",
664
+ "fraction",
665
+ "num-cmp",
666
+ "num-traits",
667
+ "serde_json",
668
+ ]
669
+
627
670
  [[package]]
628
671
  name = "kqueue"
629
672
  version = "1.1.1"
@@ -898,7 +941,7 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
898
941
 
899
942
  [[package]]
900
943
  name = "optify"
901
- version = "1.3.2"
944
+ version = "1.3.3"
902
945
  dependencies = [
903
946
  "config",
904
947
  "cow-utils",
@@ -912,12 +955,13 @@ dependencies = [
912
955
  "serde",
913
956
  "serde_json",
914
957
  "unicase",
958
+ "url",
915
959
  "walkdir",
916
960
  ]
917
961
 
918
962
  [[package]]
919
963
  name = "optify-python"
920
- version = "0.10.2"
964
+ version = "0.10.3"
921
965
  dependencies = [
922
966
  "optify",
923
967
  "pyo3",
@@ -1170,14 +1214,14 @@ dependencies = [
1170
1214
 
1171
1215
  [[package]]
1172
1216
  name = "referencing"
1173
- version = "0.46.5"
1217
+ version = "0.48.5"
1174
1218
  source = "registry+https://github.com/rust-lang/crates.io-index"
1175
- checksum = "69e4e17ef386c5383591d07623d3de49cbc601156e7582973e6db98d66a57de2"
1219
+ checksum = "980e77f5cfffc592c0e7dfb6d20770a0b96a6ab94d403de7454ed9799505e4ba"
1176
1220
  dependencies = [
1177
1221
  "ahash",
1178
1222
  "fluent-uri",
1179
1223
  "getrandom 0.3.4",
1180
- "hashbrown 0.16.1",
1224
+ "hashbrown 0.17.1",
1181
1225
  "itoa",
1182
1226
  "micromap",
1183
1227
  "parking_lot",
@@ -1352,6 +1396,27 @@ version = "1.1.0"
1352
1396
  source = "registry+https://github.com/rust-lang/crates.io-index"
1353
1397
  checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
1354
1398
 
1399
+ [[package]]
1400
+ name = "strum"
1401
+ version = "0.28.0"
1402
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1403
+ checksum = "9628de9b8791db39ceda2b119bbe13134770b56c138ec1d3af810d045c04f9bd"
1404
+ dependencies = [
1405
+ "strum_macros",
1406
+ ]
1407
+
1408
+ [[package]]
1409
+ name = "strum_macros"
1410
+ version = "0.28.0"
1411
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1412
+ checksum = "ab85eea0270ee17587ed4156089e10b9e6880ee688791d45a905f5b1ca36f664"
1413
+ dependencies = [
1414
+ "heck",
1415
+ "proc-macro2",
1416
+ "quote",
1417
+ "syn",
1418
+ ]
1419
+
1355
1420
  [[package]]
1356
1421
  name = "syn"
1357
1422
  version = "2.0.117"
@@ -1503,6 +1568,18 @@ version = "1.13.2"
1503
1568
  source = "registry+https://github.com/rust-lang/crates.io-index"
1504
1569
  checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c"
1505
1570
 
1571
+ [[package]]
1572
+ name = "url"
1573
+ version = "2.5.8"
1574
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1575
+ checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
1576
+ dependencies = [
1577
+ "form_urlencoded",
1578
+ "idna",
1579
+ "percent-encoding",
1580
+ "serde",
1581
+ ]
1582
+
1506
1583
  [[package]]
1507
1584
  name = "utf8_iter"
1508
1585
  version = "1.0.4"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "optify-python"
3
- version = "0.10.2"
3
+ version = "0.10.3"
4
4
  edition = "2021"
5
5
 
6
6
  description = "Simplifies getting the right configuration options for a process using pre-loaded configurations from files (JSON, YAML, etc.) to manage options for experiments or flights. This library is mainly made to support building implementations for other languages such as Node.js, Python, and Ruby. It is not meant to be consumed directly yet."
@@ -15,5 +15,5 @@ name = "optify"
15
15
  crate-type = ["cdylib"]
16
16
 
17
17
  [dependencies]
18
- optify = { path = "../../rust/optify", version = "1.3.2" }
18
+ optify = { path = "../../rust/optify", version = "1.3.3" }
19
19
  pyo3 = "0.29.0"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "optify"
3
- version = "1.3.2"
3
+ version = "1.3.3"
4
4
  edition = "2021"
5
5
  build = "build.rs"
6
6
 
@@ -21,10 +21,10 @@ exclude = [
21
21
  config = "0.15.23"
22
22
  cow-utils = "0.1.3"
23
23
  dunce = "1.0.5"
24
- # HTTP/file schema resolution (`resolve-http`, `resolve-file`) requires a TLS backend.
24
+ # HTTP/file schema resolution (`resolve-http`) requires a TLS backend.
25
25
  # `tls-ring` fails to cross-compile for aarch64; the default `tls-aws-lc-rs` needs cmake/lld unavailable in CI Docker containers.
26
- # All current schema `$ref` are internal (`#/definitions/...`), so resolution features are disabled for now.
27
- jsonschema = { version = "0.46.5", default-features = false }
26
+ # The embedded Optify schema is registered explicitly, while local file resolution supports relative references from custom schemas.
27
+ jsonschema = { version = "0.48.0", default-features = false, features = ["resolve-file"] }
28
28
  liquid = "0.26.11"
29
29
  notify = "8.2.0"
30
30
  # For fetching JSON schema files from the web, but it requires OpenSSL, which is tricky to install in CI environments in Docker containers.
@@ -36,6 +36,7 @@ regex = "1.12.3"
36
36
  serde = { version = "1.0.228", features = ["derive"] }
37
37
  serde_json = "1.0.149"
38
38
  unicase = "2.9.0"
39
+ url = "2.5.8"
39
40
  walkdir = "2.5.0"
40
41
 
41
42
  [dev-dependencies]
@@ -1,10 +1,13 @@
1
1
  use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
2
2
  use optify::provider::{GetOptionsPreferences, OptionsProvider, OptionsRegistry};
3
3
 
4
- const CONFIGS_DIR: &str = "../../tests/test_suites/configurable_values/configs";
4
+ const CONFIGS_DIRS: &[&str] = &[
5
+ "../../tests/test_suites/configurable_values/configs",
6
+ "../../tests/test_suites/configurable_values_no_schema/configs",
7
+ ];
5
8
 
6
9
  fn get_provider() -> OptionsProvider {
7
- OptionsProvider::build(CONFIGS_DIR).unwrap()
10
+ OptionsProvider::build_from_directories(CONFIGS_DIRS).unwrap()
8
11
  }
9
12
 
10
13
  fn benchmark_get_all_options_breakdown(c: &mut Criterion) {
@@ -1,10 +1,13 @@
1
1
  use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
2
2
  use optify::provider::{CacheOptions, GetOptionsPreferences, OptionsProvider, OptionsRegistry};
3
3
 
4
- const CONFIGS_DIR: &str = "../../tests/test_suites/configurable_values/configs";
4
+ const CONFIGS_DIRS: &[&str] = &[
5
+ "../../tests/test_suites/configurable_values/configs",
6
+ "../../tests/test_suites/configurable_values_no_schema/configs",
7
+ ];
5
8
 
6
9
  fn get_provider() -> OptionsProvider {
7
- OptionsProvider::build(CONFIGS_DIR).unwrap()
10
+ OptionsProvider::build_from_directories(CONFIGS_DIRS).unwrap()
8
11
  }
9
12
 
10
13
  fn benchmark_get_options_with_preferences_breakdown(c: &mut Criterion) {
@@ -78,7 +81,7 @@ fn benchmark_get_options_with_preferences_breakdown(c: &mut Criterion) {
78
81
  let cache_options = CacheOptions {};
79
82
  // Pre-populate cache
80
83
  let _ = provider
81
- .get_options_with_preferences(*key, *features, Some(&cache_options), None)
84
+ .get_options_with_preferences(key, features, Some(&cache_options), None)
82
85
  .unwrap();
83
86
 
84
87
  b.iter(|| {
@@ -1,5 +1,5 @@
1
1
  use config;
2
- use jsonschema::{Draft, Registry, Validator};
2
+ use jsonschema::{Registry, Validator};
3
3
  use rayon::prelude::*;
4
4
  use std::collections::{HashMap, HashSet};
5
5
  use std::path::Path;
@@ -67,6 +67,34 @@ fn add_alias(
67
67
  Ok(())
68
68
  }
69
69
 
70
+ fn drain_sorted_pointers(pointers: &mut HashSet<String>) -> Vec<String> {
71
+ drain_sorted_pointers_from_set(std::mem::take(pointers))
72
+ }
73
+
74
+ fn drain_sorted_pointers_from_set(pointers: HashSet<String>) -> Vec<String> {
75
+ let mut sorted_pointers: Vec<String> = pointers.into_iter().collect();
76
+ sort_pointers_deepest_first(&mut sorted_pointers);
77
+ sorted_pointers
78
+ }
79
+
80
+ fn sorted_pointers_from_set(pointers: &HashSet<String>) -> Vec<String> {
81
+ let mut sorted_pointers: Vec<String> = pointers.iter().cloned().collect();
82
+ sort_pointers_deepest_first(&mut sorted_pointers);
83
+ sorted_pointers
84
+ }
85
+
86
+ fn sort_pointers_deepest_first(pointers: &mut [String]) {
87
+ pointers.sort_unstable_by(|a, b| {
88
+ pointer_depth(b)
89
+ .cmp(&pointer_depth(a))
90
+ .then_with(|| a.cmp(b))
91
+ });
92
+ }
93
+
94
+ fn pointer_depth(pointer: &str) -> usize {
95
+ pointer.matches('/').count()
96
+ }
97
+
70
98
  #[allow(clippy::too_many_arguments)]
71
99
  fn resolve_imports(
72
100
  canonical_feature_name: &str,
@@ -179,9 +207,7 @@ impl OptionsProviderBuilder {
179
207
  self.prepare_build()?;
180
208
 
181
209
  let all_configurable_list_pointers =
182
- std::mem::take(&mut self.all_configurable_list_pointers)
183
- .into_iter()
184
- .collect();
210
+ drain_sorted_pointers(&mut self.all_configurable_list_pointers);
185
211
  let all_configurable_string_pointers =
186
212
  std::mem::take(&mut self.all_configurable_string_pointers)
187
213
  .into_iter()
@@ -189,7 +215,7 @@ impl OptionsProviderBuilder {
189
215
  let keyed_configurable_list_pointers =
190
216
  std::mem::take(&mut self.keyed_configurable_list_pointers)
191
217
  .into_iter()
192
- .map(|(key, set)| (key, set.into_iter().collect()))
218
+ .map(|(key, set)| (key, drain_sorted_pointers_from_set(set)))
193
219
  .collect();
194
220
  let keyed_configurable_string_pointers =
195
221
  std::mem::take(&mut self.keyed_configurable_string_pointers)
@@ -281,6 +307,7 @@ impl OptionsProviderBuilder {
281
307
  relative_path,
282
308
  }))
283
309
  }
310
+
284
311
  Err(e) => Err(format!("Error reading file {}: {e}", path.display())),
285
312
  }
286
313
  }
@@ -587,9 +614,16 @@ impl OptionsRegistryBuilder<OptionsProvider> for OptionsProviderBuilder {
587
614
  }
588
615
 
589
616
  fn with_schema(&mut self, schema_path: impl AsRef<Path>) -> Result<&Self, String> {
590
- let schema_path = schema_path.as_ref();
591
- let schema_json = crate::json::reader::read_json_from_file(schema_path)
617
+ let schema_path = dunce::canonicalize(schema_path.as_ref())
618
+ .map_err(|e| format!("Failed to resolve schema path: {e}"))?;
619
+ let schema_json = crate::json::reader::read_json_from_file(&schema_path)
592
620
  .map_err(|e| format!("Failed to read schema file: {e}"))?;
621
+ let schema_uri = url::Url::from_file_path(&schema_path).map_err(|()| {
622
+ format!(
623
+ "Failed to convert schema path to a file URI: {}",
624
+ schema_path.display()
625
+ )
626
+ })?;
593
627
 
594
628
  // Load the embedded schema file (this is resolved at compile time).
595
629
  const EMBEDDED_SCHEMA: &[u8] =
@@ -606,7 +640,7 @@ impl OptionsRegistryBuilder<OptionsProvider> for OptionsProviderBuilder {
606
640
  .map_err(|e| format!("Failed to prepare schema registry: {e}"))?;
607
641
 
608
642
  let validator = Validator::options()
609
- .with_draft(Draft::Draft7)
643
+ .with_base_uri(schema_uri.as_str())
610
644
  .with_registry(&registry)
611
645
  .build(&schema_json)
612
646
  .map_err(|e| format!("Invalid schema: {e}"))?;
@@ -624,15 +658,12 @@ impl OptionsRegistryBuilder<OptionsProvider> for OptionsProviderBuilder {
624
658
  .iter()
625
659
  .cloned()
626
660
  .collect();
627
- let all_configurable_list_pointers = self
628
- .all_configurable_list_pointers
629
- .iter()
630
- .cloned()
631
- .collect();
661
+ let all_configurable_list_pointers =
662
+ sorted_pointers_from_set(&self.all_configurable_list_pointers);
632
663
  let keyed_configurable_list_pointers = self
633
664
  .keyed_configurable_list_pointers
634
665
  .iter()
635
- .map(|(key, set)| (key.clone(), set.iter().cloned().collect()))
666
+ .map(|(key, set)| (key.clone(), sorted_pointers_from_set(set)))
636
667
  .collect();
637
668
  let keyed_configurable_string_pointers = self
638
669
  .keyed_configurable_string_pointers
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes