Skip to content

fix: [#615] Request InputArray not working for JSON array#970

Merged
almas-x merged 1 commit into
masterfrom
almas/#615
Mar 25, 2025
Merged

fix: [#615] Request InputArray not working for JSON array#970
almas-x merged 1 commit into
masterfrom
almas/#615

Conversation

@almas-x

@almas-x almas-x commented Mar 25, 2025

Copy link
Copy Markdown
Contributor

📑 Description

Closes goravel/goravel#615

image

✅ Checks

  • Added test cases for my code

@almas-x
almas-x requested a review from a team as a code owner March 25, 2025 07:57

@hwbrzzl hwbrzzl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT, Great 👍

@codecov

codecov Bot commented Mar 25, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.21%. Comparing base (29d08fe) to head (39cae87).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #970   +/-   ##
=======================================
  Coverage   69.21%   69.21%           
=======================================
  Files         160      160           
  Lines       10736    10736           
=======================================
  Hits         7431     7431           
  Misses       2969     2969           
  Partials      336      336           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@almas-x

almas-x commented Mar 25, 2025

Copy link
Copy Markdown
Contributor Author

LGMT, Great 👍

This PR introduces a breaking change to the InputMap function:

Before:

InputMap(key string, defaultValue ...map[string]string) map[string]string

After:

InputMap(key string, defaultValue ...map[string]any) map[string]any

@hwbrzzl

hwbrzzl commented Mar 25, 2025

Copy link
Copy Markdown
Contributor

Yes, I found that, will introduce this in the upgrade document.

@almas-x
almas-x merged commit 1b9ab33 into master Mar 25, 2025
@almas-x
almas-x deleted the almas/#615 branch March 25, 2025 08:28
u-wlkjyy added a commit to u-wlkjyy/framework that referenced this pull request Jun 18, 2026
- Add WithoutMiddleware method to Router interface for group-level exclusion
- Regenerate mocks via go tool mockery
- This enables Route.WithoutMiddleware(...).Group(...) style similar to Laravel
u-wlkjyy added a commit to u-wlkjyy/framework that referenced this pull request Jun 19, 2026
Per review: the field is unnecessary since Info has no Middleware field
either. Middleware exclusion is a driver implementation detail.
u-wlkjyy added a commit to u-wlkjyy/framework that referenced this pull request Jun 19, 2026
Per maintainer feedback: the field's purpose is understood and it can
be kept.
u-wlkjyy added a commit to u-wlkjyy/framework that referenced this pull request Jun 21, 2026
- Add ExcludedMiddleware field to contracts/http.Info
- Add WithoutMiddleware method to contracts/route.Action interface

This allows routes to exclude specific middleware, similar to Laravel's
withoutMiddleware() method. Useful for webhook endpoints, public APIs,
and routes that need to bypass auth/throttling from protected groups.
u-wlkjyy added a commit to u-wlkjyy/framework that referenced this pull request Jun 21, 2026
- Add WithoutMiddleware method to Router interface for group-level exclusion
- Regenerate mocks via go tool mockery
- This enables Route.WithoutMiddleware(...).Group(...) style similar to Laravel
u-wlkjyy added a commit to u-wlkjyy/framework that referenced this pull request Jun 21, 2026
Per review: the field is unnecessary since Info has no Middleware field
either. Middleware exclusion is a driver implementation detail.
u-wlkjyy added a commit to u-wlkjyy/framework that referenced this pull request Jun 21, 2026
Per maintainer feedback: the field's purpose is understood and it can
be kept.
hwbrzzl pushed a commit that referenced this pull request Jun 27, 2026
* feat: [#970] support withoutMiddleware similar to Laravel

- Add ExcludedMiddleware field to contracts/http.Info
- Add WithoutMiddleware method to contracts/route.Action interface

This allows routes to exclude specific middleware, similar to Laravel's
withoutMiddleware() method. Useful for webhook endpoints, public APIs,
and routes that need to bypass auth/throttling from protected groups.

* feat: [#970] add WithoutMiddleware to Router interface

- Add WithoutMiddleware method to Router interface for group-level exclusion
- Regenerate mocks via go tool mockery
- This enables Route.WithoutMiddleware(...).Group(...) style similar to Laravel

* refactor: [#970] drop ExcludedMiddleware from Info

Per review: the field is unnecessary since Info has no Middleware field
either. Middleware exclusion is a driver implementation detail.

* revert: [#970] restore ExcludedMiddleware in Info

Per maintainer feedback: the field's purpose is understood and it can
be kept.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request InputArray for json array doesn't work

2 participants