Comments (1)
I'm sorry for the very late response. Many things are going on IRL.
Problem now is that I'm not able to use the parent object in the Must() method and also I'm not able to get the values out of the registered Service, right?
Yes.
This limitation is due to how validations are processed in Blazor. That said, you can access the parent object by somehow attaching it to the child object as reference. Crazy I know, but should solve your problem nonetheless:
public class Parent
{
public List<Child> Children { set; get; }
}
public class Child
{
public Parent Parent { set; get; }
}
from fluentvalidation.blazor.
Related Issues (20)
- InputSelect not clearing message HOT 2
- OnFieldChanged not trigger HOT 1
- Consider using tags to version releases and use Github "releases" tab HOT 4
- How to do async validation HOT 6
- Library is not compatible with Client-Side Blazor due to Exception with async validation HOT 7
- Does not work with FluentValidation 9.x HOT 13
- International Date format yyyy-MM-dd error HOT 4
- Minor FluentValidation integration improvements HOT 1
- Validation messages are link to the first child object when using a list in the Model of the edit context HOT 5
- Silent errors misleading HOT 3
- Validation Message is not working for items inside a list HOT 1
- Nested objects are only validated when submitting the form HOT 2
- EditForm OnValidSubmit event is raised when validation failed using MustAsync() method. HOT 3
- How to trigger the validate method manually HOT 2
- Blazor WASM Project With Both Client & Server Validation HOT 1
- Async validation to server-side call HOT 2
- Suitable for Blazor webassembly? HOT 2
- Upgraded to FluentValidation 10.x and .NET 6 Preview 3, getting the following error HOT 5
- Is this repo abandoned? HOT 2
- Async dispose results in null reference.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentvalidation.blazor.