sentry-options 0.0.9__tar.gz → 0.0.11__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.
@@ -576,7 +576,7 @@ dependencies = [
576
576
 
577
577
  [[package]]
578
578
  name = "example"
579
- version = "0.0.9"
579
+ version = "0.0.11"
580
580
  dependencies = [
581
581
  "anyhow",
582
582
  "sentry-options",
@@ -2085,7 +2085,7 @@ dependencies = [
2085
2085
 
2086
2086
  [[package]]
2087
2087
  name = "sentry-options"
2088
- version = "0.0.9"
2088
+ version = "0.0.11"
2089
2089
  dependencies = [
2090
2090
  "sentry-options-validation",
2091
2091
  "serde_json",
@@ -2095,7 +2095,7 @@ dependencies = [
2095
2095
 
2096
2096
  [[package]]
2097
2097
  name = "sentry-options-cli"
2098
- version = "0.0.9"
2098
+ version = "0.0.11"
2099
2099
  dependencies = [
2100
2100
  "chrono",
2101
2101
  "clap",
@@ -2110,7 +2110,7 @@ dependencies = [
2110
2110
 
2111
2111
  [[package]]
2112
2112
  name = "sentry-options-python"
2113
- version = "0.0.9"
2113
+ version = "0.0.11"
2114
2114
  dependencies = [
2115
2115
  "pyo3",
2116
2116
  "sentry-options",
@@ -2119,7 +2119,7 @@ dependencies = [
2119
2119
 
2120
2120
  [[package]]
2121
2121
  name = "sentry-options-validation"
2122
- version = "0.0.9"
2122
+ version = "0.0.11"
2123
2123
  dependencies = [
2124
2124
  "anyhow",
2125
2125
  "chrono",
@@ -11,13 +11,13 @@ default-members = [
11
11
  ]
12
12
 
13
13
  [workspace.package]
14
- version = "0.0.9"
14
+ version = "0.0.11"
15
15
  edition = "2024"
16
16
  repository = "https://github.com/getsentry/sentry-options"
17
17
  license = "Apache-2.0"
18
18
 
19
19
  [workspace.dependencies]
20
- sentry-options-validation = { path = "sentry-options-validation", version = "0.0.9" }
20
+ sentry-options-validation = { path = "sentry-options-validation", version = "0.0.11" }
21
21
  serde = { version = "1.0", features = ["derive"] }
22
22
  serde_json = "1.0.145"
23
23
  anyhow = "1.0.100"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentry_options
3
- Version: 0.0.9
3
+ Version: 0.0.11
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3 :: Only
6
6
  Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "sentry_options"
7
- version = "0.0.9"
7
+ version = "0.0.11"
8
8
  description = "Python client for sentry-options using Rust validation"
9
9
  license = "Apache-2.0"
10
10
  requires-python = ">=3.11"
@@ -180,10 +180,19 @@ impl NamespaceSchema {
180
180
  if output.flag().valid {
181
181
  Ok(())
182
182
  } else {
183
- let errors: Vec<String> = output.iter_errors().map(|e| e.error.to_string()).collect();
183
+ let errors: Vec<String> = output
184
+ .iter_errors()
185
+ .map(|e| {
186
+ format!(
187
+ "\n\t{} {}",
188
+ e.instance_location.as_str().trim_start_matches("/"),
189
+ e.error
190
+ )
191
+ })
192
+ .collect();
184
193
  Err(ValidationError::ValueError {
185
194
  namespace: self.namespace.clone(),
186
- errors: errors.join(", "),
195
+ errors: errors.join(""),
187
196
  })
188
197
  }
189
198
  }