hephaestus 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/hephaestus/version.rb +1 -1
- data/templates/app/lib/plug_app/middleware/openapi_validation.rb +3 -3
- 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: 2d7d756704650efcb7d0eea9e659c7a0001c8734753f1cbea499ca7bb1a50126
|
4
|
+
data.tar.gz: 9b514a9719ded67a3f00f8aa94ba84923effa9a99bc1cb4c071a953035907898
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca22f649c758b8b66ccf6e088dc2200023501f03bf08e9623054aac5469eed5f49f42b8214290f243e52df01f3f63ba2da17fb953aec3b1d8079c5320a509f8f
|
7
|
+
data.tar.gz: 707e1dcafec434dcea74880164f28a0095cca745beda6658bf38c13a30b98a36a9ba6a5b29ead4ab09b8f58557174a9b02757b1564f359c278ca9bbdf842affa
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# [v0.6.4] - 09-07-2024
|
2
|
+
## What's Changed
|
3
|
+
* Updates for OpenAPI dependency by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/23
|
4
|
+
|
5
|
+
|
6
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.6.3...v0.6.4
|
1
7
|
# [v0.6.3] - 05-07-2024
|
2
8
|
## What's Changed
|
3
9
|
* Changes to support Rack 3 param parsing by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/21
|
data/lib/hephaestus/version.rb
CHANGED
@@ -29,16 +29,16 @@ module PlugApp
|
|
29
29
|
|
30
30
|
case validated_request.error
|
31
31
|
when OpenapiFirst::Schema::ValidationError
|
32
|
-
error_arr = format_arr(validated_request.error.errors.map(&:
|
32
|
+
error_arr = format_arr(validated_request.error.errors.map(&:message))
|
33
33
|
Rails.logger.error(error_arr) if print_user_api_errors?
|
34
34
|
[PlugApp::HTTP::BAD_REQUEST_I, { "Content-Type" => "application/json" }, [error_arr]]
|
35
35
|
else
|
36
|
-
case validated_request.error.
|
36
|
+
case validated_request.error.type
|
37
37
|
when :not_found
|
38
38
|
[PlugApp::HTTP::NOT_FOUND_I, { "Content-Type" => "application/json" }, [format_str("Not Found")]]
|
39
39
|
else
|
40
40
|
error_message = if validated_request.error.errors.present?
|
41
|
-
format_arr(validated_request.error.errors.map(&:
|
41
|
+
format_arr(validated_request.error.errors.map(&:message))
|
42
42
|
else
|
43
43
|
format_str(validated_request.error.message)
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hephaestus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|