Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: ActionText values for jbuilder-schema #681

Merged
merged 6 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bullet_train-api/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -236,7 +236,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
3 changes: 3 additions & 0 deletions bullet_train-api/app/helpers/api/open_api_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def automatic_components_for(model, locals: {})
path = "app/views/api/#{@version}"
paths = [path, "app/views"] + gem_paths.product(%W[/#{path} /app/views]).map(&:join)

# Transform values the same way we do for Jbuilder templates
Jbuilder::Schema::Template.prepend ValuesTransformer
newstler marked this conversation as resolved.
Show resolved Hide resolved

jbuilder = Jbuilder::Schema.renderer(paths, locals: {
# If we ever get to the point where we need a real model here, we should implement an example team in seeds that we can source it from.
model.name.underscore.split("/").last.to_sym => model.new,
Expand Down
2 changes: 1 addition & 1 deletion bullet_train-api/bullet_train-api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "pagy_cursor"
spec.add_dependency "rack-cors"
spec.add_dependency "doorkeeper"
spec.add_dependency "jbuilder-schema", "2.6.2"
spec.add_dependency "jbuilder-schema", "~> 2.6.6"
spec.add_dependency "colorizer"
spec.add_dependency "factory_bot"
end
4 changes: 2 additions & 2 deletions bullet_train-fields/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -234,7 +234,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
4 changes: 2 additions & 2 deletions bullet_train-incoming_webhooks/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -264,7 +264,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
4 changes: 2 additions & 2 deletions bullet_train-integrations-stripe/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -267,7 +267,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
4 changes: 2 additions & 2 deletions bullet_train-outgoing_webhooks/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -240,7 +240,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
4 changes: 2 additions & 2 deletions bullet_train-sortable/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -255,7 +255,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
4 changes: 2 additions & 2 deletions bullet_train-super_scaffolding/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -233,7 +233,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
4 changes: 2 additions & 2 deletions bullet_train-themes-light/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -261,7 +261,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
4 changes: 2 additions & 2 deletions bullet_train-themes-tailwind_css/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -257,7 +257,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
4 changes: 2 additions & 2 deletions bullet_train/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ PATH
colorizer
doorkeeper
factory_bot
jbuilder-schema (= 2.6.2)
jbuilder-schema (~> 2.6.6)
pagy
pagy_cursor
rack-cors
Expand Down Expand Up @@ -276,7 +276,7 @@ GEM
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
jbuilder-schema (2.6.2)
jbuilder-schema (2.6.6)
jbuilder
method_source
rails (>= 5.0.0)
Expand Down
Loading