spikard 0.17.0 → 0.17.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ecbce9d6be3646733c33c7c3f9171e4c7ab4a3e781eda97e500535c70d0c920
4
- data.tar.gz: 83ccd27c8a0c57759ddec633957a53553d452dc640fd02f712c4b1c517b6cbe8
3
+ metadata.gz: 4b2000b38f85bc16e384c298fd07d98b8e953667b34336f0307354bc72ce0cb4
4
+ data.tar.gz: 63202d1c141afc7d8f0aaff63bda97d90c756898baf24774a5cba749698b7dcf
5
5
  SHA512:
6
- metadata.gz: 0a4ed08125d9356674350e8e9ef89cae74a7a8352a62c6844255f44e37d301f44f870a4cf6537a8ea97aa338b681423506cc35edcf0cab15f9fbe76f4e44531c
7
- data.tar.gz: ea83209b2c282ee1f94c952c009e1a9455af9da9d992d404c7e3d0c20e455a5cb2e57b7b1ac513c6dbd0eba65c206de146e18645e09ba1a2a5aba5181ed9e73d
6
+ metadata.gz: 364914c8d628034faa7f5b9c2bc55c65b039ecdaa472377944f95ac7bc1ce9579b8c5c1719eb7d3fc360879266797c858c46c136e7e6756ea2fe7f36961dd532
7
+ data.tar.gz: bb8250e947edd94101edb691007768a1e31e25845aa167e26890a762999e5ad481ccc011bb04e4c1ab3c7bbf573ca76e4438f6364f39a1b4932ccbb72222a771
@@ -3251,9 +3251,9 @@ dependencies = [
3251
3251
 
3252
3252
  [[package]]
3253
3253
  name = "spikard"
3254
- version = "0.17.0"
3254
+ version = "0.17.1"
3255
3255
  source = "registry+https://github.com/rust-lang/crates.io-index"
3256
- checksum = "00f30bd3be8b84ab16412144c753add156248f76e8dd88929bf20de745fdab18"
3256
+ checksum = "4f9948b54baa602948f4a108370fc20999efe204cc3c268faeb81a4c796d7a4e"
3257
3257
  dependencies = [
3258
3258
  "anyhow",
3259
3259
  "async-graphql",
@@ -3272,9 +3272,9 @@ dependencies = [
3272
3272
 
3273
3273
  [[package]]
3274
3274
  name = "spikard-core"
3275
- version = "0.17.0"
3275
+ version = "0.17.1"
3276
3276
  source = "registry+https://github.com/rust-lang/crates.io-index"
3277
- checksum = "d7d39543e4f191f362caacef671a0d2b0bdcb37db7d503d0f79adc4b6de8ff8e"
3277
+ checksum = "53506d31ee39475e21d461d3a309ec86abe3c54e6588f0ea2128ebf7dfe1f192"
3278
3278
  dependencies = [
3279
3279
  "anyhow",
3280
3280
  "base64 0.23.1",
@@ -3298,9 +3298,9 @@ dependencies = [
3298
3298
 
3299
3299
  [[package]]
3300
3300
  name = "spikard-graphql"
3301
- version = "0.17.0"
3301
+ version = "0.17.1"
3302
3302
  source = "registry+https://github.com/rust-lang/crates.io-index"
3303
- checksum = "3791d18bbec232a84631339d970ba5c8166138fb6d2c981183298d9f70512b96"
3303
+ checksum = "cfc46b90c3d6ff4a4ac8edb3aa35ee3899776ef63a79b80cc1d10dcb4034b762"
3304
3304
  dependencies = [
3305
3305
  "async-graphql",
3306
3306
  "async-graphql-parser",
@@ -3320,9 +3320,9 @@ dependencies = [
3320
3320
 
3321
3321
  [[package]]
3322
3322
  name = "spikard-http"
3323
- version = "0.17.0"
3323
+ version = "0.17.1"
3324
3324
  source = "registry+https://github.com/rust-lang/crates.io-index"
3325
- checksum = "bcd953dfcf62e9711acd937f28c413b3bf4951006c39071502682dfd4fd6ee4b"
3325
+ checksum = "a2bf9f0733a5a0c69915acdf5e375865c8232389a68dcb471f1639557f775b74"
3326
3326
  dependencies = [
3327
3327
  "ahash",
3328
3328
  "anyhow",
@@ -3375,7 +3375,7 @@ dependencies = [
3375
3375
 
3376
3376
  [[package]]
3377
3377
  name = "spikard-rb"
3378
- version = "0.17.0"
3378
+ version = "0.17.1"
3379
3379
  dependencies = [
3380
3380
  "magnus",
3381
3381
  "rb-sys",
@@ -1,11 +1,11 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:f6c1f398384da091db0429e413e2d53e8c19a2d40392e4ab26f7d6e6a45d686a
2
+ # alef:hash:35eddf0c1c2d5026810d7c6764f4a07eb6f6a4842f16e260e28a28acfe53d607
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
 
6
6
  [package]
7
7
  name = "spikard-rb"
8
- version = "0.17.0"
8
+ version = "0.17.1"
9
9
  edition = "2024"
10
10
  license = "MIT"
11
11
  description = "Codegen-first polyglot web toolkit with a Rust core and bindings for 14 languages"
@@ -30,10 +30,10 @@ magnus = "0.8"
30
30
  rb-sys = ">=0.9.130, <0.10"
31
31
  serde = { version = "1", features = ["derive"] }
32
32
  serde_json = "1"
33
- spikard = { version = "0.17.0", features = ["di"] }
34
- spikard-core = { version = "0.17.0" }
35
- spikard-graphql = { version = "0.17.0" }
36
- spikard-http = { version = "0.17.0" }
33
+ spikard = { version = "0.17.1", features = ["di"] }
34
+ spikard-core = { version = "0.17.1" }
35
+ spikard-graphql = { version = "0.17.1" }
36
+ spikard-http = { version = "0.17.1" }
37
37
  tokio = { version = "1", features = ["rt-multi-thread"] }
38
38
 
39
39
  # This crate deliberately does not use `[lints]` / `workspace = true`: its C-ABI /
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by alef. DO NOT EDIT.
2
- // alef:hash:a26b8537f7683f36b2bad4d117a704125c0a682f94fa5071bb94f4a8b7302c7a
2
+ // alef:hash:7dba771586f8d986a77beab2ac80f9b73fcf547adda43ac03babc4620d3871cf
3
3
  // Re-generate with: alef generate
4
4
  #![allow(dead_code, unused_imports, unused_variables)]
5
5
  #![allow(
@@ -311,7 +311,7 @@ impl AsyncApiConfig {
311
311
  })?,
312
312
  None => Default::default(),
313
313
  },
314
- spec: match kwargs.get(ruby.to_symbol("spec")) {
314
+ spec: match kwargs.get(ruby.to_symbol("spec")).filter(|v| !v.is_nil()) {
315
315
  Some(v) => Some(String::try_convert(v).map_err(|e| {
316
316
  magnus::Error::new(
317
317
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -497,7 +497,7 @@ impl BackgroundJobMetadata {
497
497
  })?,
498
498
  None => "background_task".to_string(),
499
499
  },
500
- request_id: match kwargs.get(ruby.to_symbol("request_id")) {
500
+ request_id: match kwargs.get(ruby.to_symbol("request_id")).filter(|v| !v.is_nil()) {
501
501
  Some(v) => Some(String::try_convert(v).map_err(|e| {
502
502
  magnus::Error::new(
503
503
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -791,7 +791,7 @@ impl ContactInfo {
791
791
  let (kwargs_opt,) = args.optional;
792
792
  let kwargs = kwargs_opt.unwrap_or_else(|| ruby.hash_new());
793
793
  Ok(Self {
794
- name: match kwargs.get(ruby.to_symbol("name")) {
794
+ name: match kwargs.get(ruby.to_symbol("name")).filter(|v| !v.is_nil()) {
795
795
  Some(v) => Some(String::try_convert(v).map_err(|e| {
796
796
  magnus::Error::new(
797
797
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -800,7 +800,7 @@ impl ContactInfo {
800
800
  })?),
801
801
  None => None,
802
802
  },
803
- email: match kwargs.get(ruby.to_symbol("email")) {
803
+ email: match kwargs.get(ruby.to_symbol("email")).filter(|v| !v.is_nil()) {
804
804
  Some(v) => Some(String::try_convert(v).map_err(|e| {
805
805
  magnus::Error::new(
806
806
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -809,7 +809,7 @@ impl ContactInfo {
809
809
  })?),
810
810
  None => None,
811
811
  },
812
- url: match kwargs.get(ruby.to_symbol("url")) {
812
+ url: match kwargs.get(ruby.to_symbol("url")).filter(|v| !v.is_nil()) {
813
813
  Some(v) => Some(String::try_convert(v).map_err(|e| {
814
814
  magnus::Error::new(
815
815
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -922,7 +922,7 @@ impl CorsConfig {
922
922
  })?,
923
923
  None => Default::default(),
924
924
  },
925
- expose_headers: match kwargs.get(ruby.to_symbol("expose_headers")) {
925
+ expose_headers: match kwargs.get(ruby.to_symbol("expose_headers")).filter(|v| !v.is_nil()) {
926
926
  Some(v) => Some(<Vec<String>>::try_convert(v).map_err(|e| {
927
927
  magnus::Error::new(
928
928
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -931,7 +931,7 @@ impl CorsConfig {
931
931
  })?),
932
932
  None => None,
933
933
  },
934
- max_age: match kwargs.get(ruby.to_symbol("max_age")) {
934
+ max_age: match kwargs.get(ruby.to_symbol("max_age")).filter(|v| !v.is_nil()) {
935
935
  Some(v) => Some(u32::try_convert(v).map_err(|e| {
936
936
  magnus::Error::new(
937
937
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -940,7 +940,7 @@ impl CorsConfig {
940
940
  })?),
941
941
  None => None,
942
942
  },
943
- allow_credentials: match kwargs.get(ruby.to_symbol("allow_credentials")) {
943
+ allow_credentials: match kwargs.get(ruby.to_symbol("allow_credentials")).filter(|v| !v.is_nil()) {
944
944
  Some(v) => Some(bool::try_convert(v).map_err(|e| {
945
945
  magnus::Error::new(
946
946
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1117,7 +1117,7 @@ impl DynamicSchemaConfig {
1117
1117
  })?,
1118
1118
  None => Default::default(),
1119
1119
  },
1120
- max_complexity: match kwargs.get(ruby.to_symbol("max_complexity")) {
1120
+ max_complexity: match kwargs.get(ruby.to_symbol("max_complexity")).filter(|v| !v.is_nil()) {
1121
1121
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
1122
1122
  magnus::Error::new(
1123
1123
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1126,7 +1126,7 @@ impl DynamicSchemaConfig {
1126
1126
  })?),
1127
1127
  None => None,
1128
1128
  },
1129
- max_depth: match kwargs.get(ruby.to_symbol("max_depth")) {
1129
+ max_depth: match kwargs.get(ruby.to_symbol("max_depth")).filter(|v| !v.is_nil()) {
1130
1130
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
1131
1131
  magnus::Error::new(
1132
1132
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1295,7 +1295,7 @@ impl FullSchemaConfig {
1295
1295
  })?,
1296
1296
  None => true,
1297
1297
  },
1298
- complexity_limit: match kwargs.get(ruby.to_symbol("complexity_limit")) {
1298
+ complexity_limit: match kwargs.get(ruby.to_symbol("complexity_limit")).filter(|v| !v.is_nil()) {
1299
1299
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
1300
1300
  magnus::Error::new(
1301
1301
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1304,7 +1304,7 @@ impl FullSchemaConfig {
1304
1304
  })?),
1305
1305
  None => None,
1306
1306
  },
1307
- depth_limit: match kwargs.get(ruby.to_symbol("depth_limit")) {
1307
+ depth_limit: match kwargs.get(ruby.to_symbol("depth_limit")).filter(|v| !v.is_nil()) {
1308
1308
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
1309
1309
  magnus::Error::new(
1310
1310
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1464,7 +1464,7 @@ impl GraphQLSubscriptionSnapshot {
1464
1464
  })?,
1465
1465
  None => Default::default(),
1466
1466
  },
1467
- event: match kwargs.get(ruby.to_symbol("event")) {
1467
+ event: match kwargs.get(ruby.to_symbol("event")).filter(|v| !v.is_nil()) {
1468
1468
  Some(v) => Some(String::try_convert(v).map_err(|e| {
1469
1469
  magnus::Error::new(
1470
1470
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1606,7 +1606,7 @@ impl GrpcConfig {
1606
1606
  })?,
1607
1607
  None => true,
1608
1608
  },
1609
- request_timeout: match kwargs.get(ruby.to_symbol("request_timeout")) {
1609
+ request_timeout: match kwargs.get(ruby.to_symbol("request_timeout")).filter(|v| !v.is_nil()) {
1610
1610
  Some(v) => Some(u64::try_convert(v).map_err(|e| {
1611
1611
  magnus::Error::new(
1612
1612
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1651,7 +1651,10 @@ impl GrpcConfig {
1651
1651
  })?,
1652
1652
  None => 20,
1653
1653
  },
1654
- max_stream_response_bytes: match kwargs.get(ruby.to_symbol("max_stream_response_bytes")) {
1654
+ max_stream_response_bytes: match kwargs
1655
+ .get(ruby.to_symbol("max_stream_response_bytes"))
1656
+ .filter(|v| !v.is_nil())
1657
+ {
1655
1658
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
1656
1659
  magnus::Error::new(
1657
1660
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1891,7 +1894,7 @@ impl JsonRpcMethodInfo {
1891
1894
  })?,
1892
1895
  None => Default::default(),
1893
1896
  },
1894
- description: match kwargs.get(ruby.to_symbol("description")) {
1897
+ description: match kwargs.get(ruby.to_symbol("description")).filter(|v| !v.is_nil()) {
1895
1898
  Some(v) => Some(String::try_convert(v).map_err(|e| {
1896
1899
  magnus::Error::new(
1897
1900
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1900,7 +1903,7 @@ impl JsonRpcMethodInfo {
1900
1903
  })?),
1901
1904
  None => None,
1902
1905
  },
1903
- params_schema: match kwargs.get(ruby.to_symbol("params_schema")) {
1906
+ params_schema: match kwargs.get(ruby.to_symbol("params_schema")).filter(|v| !v.is_nil()) {
1904
1907
  Some(v) => Some(String::try_convert(v).map_err(|e| {
1905
1908
  magnus::Error::new(
1906
1909
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1909,7 +1912,7 @@ impl JsonRpcMethodInfo {
1909
1912
  })?),
1910
1913
  None => None,
1911
1914
  },
1912
- result_schema: match kwargs.get(ruby.to_symbol("result_schema")) {
1915
+ result_schema: match kwargs.get(ruby.to_symbol("result_schema")).filter(|v| !v.is_nil()) {
1913
1916
  Some(v) => Some(String::try_convert(v).map_err(|e| {
1914
1917
  magnus::Error::new(
1915
1918
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2042,7 +2045,7 @@ impl JwtAuthConfig {
2042
2045
  })?,
2043
2046
  None => true,
2044
2047
  },
2045
- secret: match kwargs.get(ruby.to_symbol("secret")) {
2048
+ secret: match kwargs.get(ruby.to_symbol("secret")).filter(|v| !v.is_nil()) {
2046
2049
  Some(v) => Some(String::try_convert(v).map_err(|e| {
2047
2050
  magnus::Error::new(
2048
2051
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2051,7 +2054,7 @@ impl JwtAuthConfig {
2051
2054
  })?),
2052
2055
  None => None,
2053
2056
  },
2054
- public_key: match kwargs.get(ruby.to_symbol("public_key")) {
2057
+ public_key: match kwargs.get(ruby.to_symbol("public_key")).filter(|v| !v.is_nil()) {
2055
2058
  Some(v) => Some(String::try_convert(v).map_err(|e| {
2056
2059
  magnus::Error::new(
2057
2060
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2069,7 +2072,7 @@ impl JwtAuthConfig {
2069
2072
  })?,
2070
2073
  None => "HS256".to_string(),
2071
2074
  },
2072
- audience: match kwargs.get(ruby.to_symbol("audience")) {
2075
+ audience: match kwargs.get(ruby.to_symbol("audience")).filter(|v| !v.is_nil()) {
2073
2076
  Some(v) => Some(<Vec<String>>::try_convert(v).map_err(|e| {
2074
2077
  magnus::Error::new(
2075
2078
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2078,7 +2081,7 @@ impl JwtAuthConfig {
2078
2081
  })?),
2079
2082
  None => None,
2080
2083
  },
2081
- issuer: match kwargs.get(ruby.to_symbol("issuer")) {
2084
+ issuer: match kwargs.get(ruby.to_symbol("issuer")).filter(|v| !v.is_nil()) {
2082
2085
  Some(v) => Some(String::try_convert(v).map_err(|e| {
2083
2086
  magnus::Error::new(
2084
2087
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2211,7 +2214,7 @@ impl JwtConfig {
2211
2214
  })?,
2212
2215
  None => "HS256".to_string(),
2213
2216
  },
2214
- audience: match kwargs.get(ruby.to_symbol("audience")) {
2217
+ audience: match kwargs.get(ruby.to_symbol("audience")).filter(|v| !v.is_nil()) {
2215
2218
  Some(v) => Some(<Vec<String>>::try_convert(v).map_err(|e| {
2216
2219
  magnus::Error::new(
2217
2220
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2220,7 +2223,7 @@ impl JwtConfig {
2220
2223
  })?),
2221
2224
  None => None,
2222
2225
  },
2223
- issuer: match kwargs.get(ruby.to_symbol("issuer")) {
2226
+ issuer: match kwargs.get(ruby.to_symbol("issuer")).filter(|v| !v.is_nil()) {
2224
2227
  Some(v) => Some(String::try_convert(v).map_err(|e| {
2225
2228
  magnus::Error::new(
2226
2229
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2313,7 +2316,7 @@ impl LicenseInfo {
2313
2316
  })?,
2314
2317
  None => Default::default(),
2315
2318
  },
2316
- url: match kwargs.get(ruby.to_symbol("url")) {
2319
+ url: match kwargs.get(ruby.to_symbol("url")).filter(|v| !v.is_nil()) {
2317
2320
  Some(v) => Some(String::try_convert(v).map_err(|e| {
2318
2321
  magnus::Error::new(
2319
2322
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2421,7 +2424,7 @@ impl LifecycleHookRef {
2421
2424
  })?,
2422
2425
  None => Default::default(),
2423
2426
  },
2424
- config: match kwargs.get(ruby.to_symbol("config")) {
2427
+ config: match kwargs.get(ruby.to_symbol("config")).filter(|v| !v.is_nil()) {
2425
2428
  Some(v) => Some(String::try_convert(v).map_err(|e| {
2426
2429
  magnus::Error::new(
2427
2430
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2430,7 +2433,7 @@ impl LifecycleHookRef {
2430
2433
  })?),
2431
2434
  None => None,
2432
2435
  },
2433
- order: match kwargs.get(ruby.to_symbol("order")) {
2436
+ order: match kwargs.get(ruby.to_symbol("order")).filter(|v| !v.is_nil()) {
2434
2437
  Some(v) => Some(u32::try_convert(v).map_err(|e| {
2435
2438
  magnus::Error::new(
2436
2439
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2685,7 +2688,7 @@ impl OpenApiConfig {
2685
2688
  })?,
2686
2689
  None => "1.0.0".to_string(),
2687
2690
  },
2688
- description: match kwargs.get(ruby.to_symbol("description")) {
2691
+ description: match kwargs.get(ruby.to_symbol("description")).filter(|v| !v.is_nil()) {
2689
2692
  Some(v) => Some(String::try_convert(v).map_err(|e| {
2690
2693
  magnus::Error::new(
2691
2694
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2721,7 +2724,7 @@ impl OpenApiConfig {
2721
2724
  })?,
2722
2725
  None => "/openapi.json".to_string(),
2723
2726
  },
2724
- contact: match kwargs.get(ruby.to_symbol("contact")) {
2727
+ contact: match kwargs.get(ruby.to_symbol("contact")).filter(|v| !v.is_nil()) {
2725
2728
  Some(v) => Some(ContactInfo::try_convert(v).map_err(|e| {
2726
2729
  magnus::Error::new(
2727
2730
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -2730,7 +2733,7 @@ impl OpenApiConfig {
2730
2733
  })?),
2731
2734
  None => None,
2732
2735
  },
2733
- license: match kwargs.get(ruby.to_symbol("license")) {
2736
+ license: match kwargs.get(ruby.to_symbol("license")).filter(|v| !v.is_nil()) {
2734
2737
  Some(v) => Some(LicenseInfo::try_convert(v).map_err(|e| {
2735
2738
  magnus::Error::new(
2736
2739
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -3070,7 +3073,7 @@ impl ParsedChannel {
3070
3073
  })?,
3071
3074
  None => Default::default(),
3072
3075
  },
3073
- bindings: match kwargs.get(ruby.to_symbol("bindings")) {
3076
+ bindings: match kwargs.get(ruby.to_symbol("bindings")).filter(|v| !v.is_nil()) {
3074
3077
  Some(v) => Some(String::try_convert(v).map_err(|e| {
3075
3078
  magnus::Error::new(
3076
3079
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -3150,7 +3153,7 @@ impl ParsedMessage {
3150
3153
  })?,
3151
3154
  None => Default::default(),
3152
3155
  },
3153
- schema: match kwargs.get(ruby.to_symbol("schema")) {
3156
+ schema: match kwargs.get(ruby.to_symbol("schema")).filter(|v| !v.is_nil()) {
3154
3157
  Some(v) => Some(String::try_convert(v).map_err(|e| {
3155
3158
  magnus::Error::new(
3156
3159
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -3261,6 +3264,7 @@ impl ParsedOperation {
3261
3264
  #[serde(default)]
3262
3265
  #[magnus::wrap(class = "Spikard::ProblemDetails")]
3263
3266
  pub struct ProblemDetails {
3267
+ #[serde(rename = "type")]
3264
3268
  type_uri: String,
3265
3269
  title: String,
3266
3270
  status: u16,
@@ -3345,7 +3349,7 @@ impl ProblemDetails {
3345
3349
  })?,
3346
3350
  None => 500,
3347
3351
  },
3348
- detail: match kwargs.get(ruby.to_symbol("detail")) {
3352
+ detail: match kwargs.get(ruby.to_symbol("detail")).filter(|v| !v.is_nil()) {
3349
3353
  Some(v) => Some(String::try_convert(v).map_err(|e| {
3350
3354
  magnus::Error::new(
3351
3355
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -3354,7 +3358,7 @@ impl ProblemDetails {
3354
3358
  })?),
3355
3359
  None => None,
3356
3360
  },
3357
- instance: match kwargs.get(ruby.to_symbol("instance")) {
3361
+ instance: match kwargs.get(ruby.to_symbol("instance")).filter(|v| !v.is_nil()) {
3358
3362
  Some(v) => Some(String::try_convert(v).map_err(|e| {
3359
3363
  magnus::Error::new(
3360
3364
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -3591,7 +3595,7 @@ impl QueryMutationConfig {
3591
3595
  })?,
3592
3596
  None => true,
3593
3597
  },
3594
- complexity_limit: match kwargs.get(ruby.to_symbol("complexity_limit")) {
3598
+ complexity_limit: match kwargs.get(ruby.to_symbol("complexity_limit")).filter(|v| !v.is_nil()) {
3595
3599
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
3596
3600
  magnus::Error::new(
3597
3601
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -3600,7 +3604,7 @@ impl QueryMutationConfig {
3600
3604
  })?),
3601
3605
  None => None,
3602
3606
  },
3603
- depth_limit: match kwargs.get(ruby.to_symbol("depth_limit")) {
3607
+ depth_limit: match kwargs.get(ruby.to_symbol("depth_limit")).filter(|v| !v.is_nil()) {
3604
3608
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
3605
3609
  magnus::Error::new(
3606
3610
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -3684,7 +3688,7 @@ impl QueryOnlyConfig {
3684
3688
  })?,
3685
3689
  None => true,
3686
3690
  },
3687
- complexity_limit: match kwargs.get(ruby.to_symbol("complexity_limit")) {
3691
+ complexity_limit: match kwargs.get(ruby.to_symbol("complexity_limit")).filter(|v| !v.is_nil()) {
3688
3692
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
3689
3693
  magnus::Error::new(
3690
3694
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -3693,7 +3697,7 @@ impl QueryOnlyConfig {
3693
3697
  })?),
3694
3698
  None => None,
3695
3699
  },
3696
- depth_limit: match kwargs.get(ruby.to_symbol("depth_limit")) {
3700
+ depth_limit: match kwargs.get(ruby.to_symbol("depth_limit")).filter(|v| !v.is_nil()) {
3697
3701
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
3698
3702
  magnus::Error::new(
3699
3703
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -3927,7 +3931,7 @@ impl Response {
3927
3931
  let (kwargs_opt,) = args.optional;
3928
3932
  let kwargs = kwargs_opt.unwrap_or_else(|| ruby.hash_new());
3929
3933
  Ok(Self {
3930
- content: match kwargs.get(ruby.to_symbol("content")) {
3934
+ content: match kwargs.get(ruby.to_symbol("content")).filter(|v| !v.is_nil()) {
3931
3935
  Some(v) => Some(String::try_convert(v).map_err(|e| {
3932
3936
  magnus::Error::new(
3933
3937
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4361,7 +4365,7 @@ impl SchemaConfig {
4361
4365
  })?,
4362
4366
  None => true,
4363
4367
  },
4364
- complexity_limit: match kwargs.get(ruby.to_symbol("complexity_limit")) {
4368
+ complexity_limit: match kwargs.get(ruby.to_symbol("complexity_limit")).filter(|v| !v.is_nil()) {
4365
4369
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
4366
4370
  magnus::Error::new(
4367
4371
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4370,7 +4374,7 @@ impl SchemaConfig {
4370
4374
  })?),
4371
4375
  None => None,
4372
4376
  },
4373
- depth_limit: match kwargs.get(ruby.to_symbol("depth_limit")) {
4377
+ depth_limit: match kwargs.get(ruby.to_symbol("depth_limit")).filter(|v| !v.is_nil()) {
4374
4378
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
4375
4379
  magnus::Error::new(
4376
4380
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4500,7 +4504,7 @@ impl ServerConfig {
4500
4504
  })?,
4501
4505
  None => false,
4502
4506
  },
4503
- max_body_size: match kwargs.get(ruby.to_symbol("max_body_size")) {
4507
+ max_body_size: match kwargs.get(ruby.to_symbol("max_body_size")).filter(|v| !v.is_nil()) {
4504
4508
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
4505
4509
  magnus::Error::new(
4506
4510
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4509,7 +4513,7 @@ impl ServerConfig {
4509
4513
  })?),
4510
4514
  None => None,
4511
4515
  },
4512
- request_timeout: match kwargs.get(ruby.to_symbol("request_timeout")) {
4516
+ request_timeout: match kwargs.get(ruby.to_symbol("request_timeout")).filter(|v| !v.is_nil()) {
4513
4517
  Some(v) => Some(u64::try_convert(v).map_err(|e| {
4514
4518
  magnus::Error::new(
4515
4519
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4518,7 +4522,7 @@ impl ServerConfig {
4518
4522
  })?),
4519
4523
  None => None,
4520
4524
  },
4521
- compression: match kwargs.get(ruby.to_symbol("compression")) {
4525
+ compression: match kwargs.get(ruby.to_symbol("compression")).filter(|v| !v.is_nil()) {
4522
4526
  Some(v) => Some(CompressionConfig::try_convert(v).map_err(|e| {
4523
4527
  magnus::Error::new(
4524
4528
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4527,7 +4531,7 @@ impl ServerConfig {
4527
4531
  })?),
4528
4532
  None => None,
4529
4533
  },
4530
- rate_limit: match kwargs.get(ruby.to_symbol("rate_limit")) {
4534
+ rate_limit: match kwargs.get(ruby.to_symbol("rate_limit")).filter(|v| !v.is_nil()) {
4531
4535
  Some(v) => Some(RateLimitConfig::try_convert(v).map_err(|e| {
4532
4536
  magnus::Error::new(
4533
4537
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4536,7 +4540,7 @@ impl ServerConfig {
4536
4540
  })?),
4537
4541
  None => None,
4538
4542
  },
4539
- jwt_auth: match kwargs.get(ruby.to_symbol("jwt_auth")) {
4543
+ jwt_auth: match kwargs.get(ruby.to_symbol("jwt_auth")).filter(|v| !v.is_nil()) {
4540
4544
  Some(v) => Some(JwtConfig::try_convert(v).map_err(|e| {
4541
4545
  magnus::Error::new(
4542
4546
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4545,7 +4549,7 @@ impl ServerConfig {
4545
4549
  })?),
4546
4550
  None => None,
4547
4551
  },
4548
- api_key_auth: match kwargs.get(ruby.to_symbol("api_key_auth")) {
4552
+ api_key_auth: match kwargs.get(ruby.to_symbol("api_key_auth")).filter(|v| !v.is_nil()) {
4549
4553
  Some(v) => Some(ApiKeyConfig::try_convert(v).map_err(|e| {
4550
4554
  magnus::Error::new(
4551
4555
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4581,7 +4585,7 @@ impl ServerConfig {
4581
4585
  })?,
4582
4586
  None => 30,
4583
4587
  },
4584
- asyncapi: match kwargs.get(ruby.to_symbol("asyncapi")) {
4588
+ asyncapi: match kwargs.get(ruby.to_symbol("asyncapi")).filter(|v| !v.is_nil()) {
4585
4589
  Some(v) => Some(AsyncApiConfig::try_convert(v).map_err(|e| {
4586
4590
  magnus::Error::new(
4587
4591
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4590,7 +4594,7 @@ impl ServerConfig {
4590
4594
  })?),
4591
4595
  None => None,
4592
4596
  },
4593
- openapi: match kwargs.get(ruby.to_symbol("openapi")) {
4597
+ openapi: match kwargs.get(ruby.to_symbol("openapi")).filter(|v| !v.is_nil()) {
4594
4598
  Some(v) => Some(OpenApiConfig::try_convert(v).map_err(|e| {
4595
4599
  magnus::Error::new(
4596
4600
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4599,7 +4603,7 @@ impl ServerConfig {
4599
4603
  })?),
4600
4604
  None => None,
4601
4605
  },
4602
- jsonrpc: match kwargs.get(ruby.to_symbol("jsonrpc")) {
4606
+ jsonrpc: match kwargs.get(ruby.to_symbol("jsonrpc")).filter(|v| !v.is_nil()) {
4603
4607
  Some(v) => Some(JsonRpcConfig::try_convert(v).map_err(|e| {
4604
4608
  magnus::Error::new(
4605
4609
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4609,7 +4613,7 @@ impl ServerConfig {
4609
4613
  None => None,
4610
4614
  },
4611
4615
  #[cfg(not(target_arch = "wasm32"))]
4612
- grpc: match kwargs.get(ruby.to_symbol("grpc")) {
4616
+ grpc: match kwargs.get(ruby.to_symbol("grpc")).filter(|v| !v.is_nil()) {
4613
4617
  Some(v) => Some(GrpcConfig::try_convert(v).map_err(|e| {
4614
4618
  magnus::Error::new(
4615
4619
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4772,7 +4776,7 @@ impl ServerInfo {
4772
4776
  })?,
4773
4777
  None => Default::default(),
4774
4778
  },
4775
- description: match kwargs.get(ruby.to_symbol("description")) {
4779
+ description: match kwargs.get(ruby.to_symbol("description")).filter(|v| !v.is_nil()) {
4776
4780
  Some(v) => Some(String::try_convert(v).map_err(|e| {
4777
4781
  magnus::Error::new(
4778
4782
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4837,7 +4841,7 @@ impl SseEvent {
4837
4841
  let (kwargs_opt,) = args.optional;
4838
4842
  let kwargs = kwargs_opt.unwrap_or_else(|| ruby.hash_new());
4839
4843
  Ok(Self {
4840
- event_type: match kwargs.get(ruby.to_symbol("event_type")) {
4844
+ event_type: match kwargs.get(ruby.to_symbol("event_type")).filter(|v| !v.is_nil()) {
4841
4845
  Some(v) => Some(String::try_convert(v).map_err(|e| {
4842
4846
  magnus::Error::new(
4843
4847
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4855,7 +4859,7 @@ impl SseEvent {
4855
4859
  })?,
4856
4860
  None => Default::default(),
4857
4861
  },
4858
- id: match kwargs.get(ruby.to_symbol("id")) {
4862
+ id: match kwargs.get(ruby.to_symbol("id")).filter(|v| !v.is_nil()) {
4859
4863
  Some(v) => Some(String::try_convert(v).map_err(|e| {
4860
4864
  magnus::Error::new(
4861
4865
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -4864,7 +4868,7 @@ impl SseEvent {
4864
4868
  })?),
4865
4869
  None => None,
4866
4870
  },
4867
- retry: match kwargs.get(ruby.to_symbol("retry")) {
4871
+ retry: match kwargs.get(ruby.to_symbol("retry")).filter(|v| !v.is_nil()) {
4868
4872
  Some(v) => Some(u64::try_convert(v).map_err(|e| {
4869
4873
  magnus::Error::new(
4870
4874
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -5009,7 +5013,7 @@ impl StaticFilesConfig {
5009
5013
  })?,
5010
5014
  None => true,
5011
5015
  },
5012
- cache_control: match kwargs.get(ruby.to_symbol("cache_control")) {
5016
+ cache_control: match kwargs.get(ruby.to_symbol("cache_control")).filter(|v| !v.is_nil()) {
5013
5017
  Some(v) => Some(String::try_convert(v).map_err(|e| {
5014
5018
  magnus::Error::new(
5015
5019
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -5351,7 +5355,7 @@ impl UploadFile {
5351
5355
  })?,
5352
5356
  None => Default::default(),
5353
5357
  },
5354
- content_type: match kwargs.get(ruby.to_symbol("content_type")) {
5358
+ content_type: match kwargs.get(ruby.to_symbol("content_type")).filter(|v| !v.is_nil()) {
5355
5359
  Some(v) => Some(String::try_convert(v).map_err(|e| {
5356
5360
  magnus::Error::new(
5357
5361
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -5360,7 +5364,7 @@ impl UploadFile {
5360
5364
  })?),
5361
5365
  None => None,
5362
5366
  },
5363
- size: match kwargs.get(ruby.to_symbol("size")) {
5367
+ size: match kwargs.get(ruby.to_symbol("size")).filter(|v| !v.is_nil()) {
5364
5368
  Some(v) => Some(usize::try_convert(v).map_err(|e| {
5365
5369
  magnus::Error::new(
5366
5370
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -5378,7 +5382,7 @@ impl UploadFile {
5378
5382
  })?,
5379
5383
  None => Default::default(),
5380
5384
  },
5381
- content_encoding: match kwargs.get(ruby.to_symbol("content_encoding")) {
5385
+ content_encoding: match kwargs.get(ruby.to_symbol("content_encoding")).filter(|v| !v.is_nil()) {
5382
5386
  Some(v) => Some(String::try_convert(v).map_err(|e| {
5383
5387
  magnus::Error::new(
5384
5388
  unsafe { magnus::Ruby::get_unchecked() }.exception_type_error(),
@@ -1,10 +1,10 @@
1
1
  # This file is auto-generated by alef — DO NOT EDIT.
2
- # alef:hash:eacc40de648aea86d75889149ce214a108e118c8090d25fc5c62d24e63c278f2
2
+ # alef:hash:8b14200f72d25dd7608de928fff3642e64b622a90e38c7aa7709996697869a30
3
3
  # To regenerate: alef generate
4
4
  # To verify freshness: alef verify
5
5
  # frozen_string_literal: true
6
6
 
7
7
  module Spikard
8
8
  ## The version string for this package.
9
- VERSION = "0.17.0"
9
+ VERSION = "0.17.1"
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spikard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Na'aman Hirschfeld <nhirschfeld@gmail.com>