You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
[AllowCallerValidationSeverity] lets a command explicitly permit callers to relax validation severities above the host default.
A new Command property on ArcOptions (CommandOptions, bound from Cratis:Arc:Command) configures the default maximum caller severity and lets hosts ignore the header globally, including on opted-in commands.
Commands can declare [assembly: BlockOnValidationSeverity(...)] as a fallback blocking policy. Command and inherited declarations take precedence, and generated TypeScript proxies carry the resolved policy.
Changed
Model-bound command HTTP endpoints now cap caller-allowed validation severity at Warning by default. If your application intentionally allows callers to relax errors, opt in with [AllowCallerValidationSeverity(ValidationResultSeverity.Error)] or set Cratis:Arc:Command:MaximumCallerAllowedSeverity to Error. Set IgnoreCallerAllowedSeverity to ignore the header even on opted-in commands. See validation severity filtering.
Fixed
Controller command and query results and observable query errors now honor ExposeExceptionDetails, returning a generic error when detail is disabled while keeping full detail in server logs.
HttpListener-hosted endpoints now reject non-empty non-JSON request bodies when reading JSON, matching ASP.NET Core behavior for payloads. Send application/json or an application/*+json content type.