rswag-schema_components 0.3.2 → 0.3.3
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 +4 -4
- data/lib/rswag/schema_components/loader.rb +5 -1
- data/lib/rswag/schema_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c98e715a9103f4adf15c3abe62868975e65135f4530396a4afbf0246919a050a
|
4
|
+
data.tar.gz: 030662f0bd7528c69be66d73fc4d1b29dd8c9581d94478e6d6a780eb7212d6c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69ca24eac0c1d4b87b854b73794dbd2e9ab52a6dd710cfa2c1d8f5ffada89a96584faf00e6d2a1a060e70ce76049fc18cb0aea0f51526e94883549286f824a82
|
7
|
+
data.tar.gz: f7e6518945baa9515940ec16b5957a755d0cd5bdd4bd31068cb230042102002eb9affeecce883254b19ff820280e34f39d39c582d44e705702d57a050d1d589f
|
@@ -40,7 +40,11 @@ module Rswag
|
|
40
40
|
|
41
41
|
definition = definition.merge(title: component_name) if type_allows_title?
|
42
42
|
|
43
|
-
components[component_name] = definition.deep_transform_keys
|
43
|
+
components[component_name] = definition.deep_transform_keys do |key|
|
44
|
+
prefix = key.to_s.start_with?("_") ? "_" : ""
|
45
|
+
|
46
|
+
"#{prefix}#{key.to_s.delete_prefix("_").camelize(:lower)}".to_sym
|
47
|
+
end
|
44
48
|
end
|
45
49
|
|
46
50
|
components
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rswag-schema_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Klitzke
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-07-
|
10
|
+
date: 2025-07-29 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rails
|