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
Custom constraints can be added to Fiber using the `app.RegisterCustomConstraint` method. Your constraints have to be compatible with the `CustomConstraint` interface.
252
252
253
+
:::caution
254
+
Attention, custom constraints can now override built-in constraints. If a custom constraint has the same name as a built-in constraint, the custom constraint will be used instead. This allows for more flexibility in defining route parameter constraints.
255
+
:::
256
+
253
257
It is a good idea to add external constraints to your project once you want to add more specific rules to your routes.
254
258
For example, you can add a constraint to check if a parameter is a valid ULID.
0 commit comments