-
Notifications
You must be signed in to change notification settings - Fork 11
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
Expansion of constructor for Validate in IFileValidator #554
Comments
I don't think it would make much sense to always fetch the current data model to run file validators, and when we start supporting multiple data models in the same task, it is unclear what data element we should fetch anyway. The correct approach would be to use Do you like the separation between |
Hmm... Didn't think of that before. Let me test og come back on it if it works. No, I do like the separation of FileAnalyse and FileValidator. The code is more clear and follows the single responsibility principle. |
What is the use case where you need to get the data in addition to the results from the analyzer? The original thought behind the IFileAnalyzer and IFileValidator separation was to:
|
This schema is a schema that FT instantiate and dump in the users inbox. The app itself is quite simple, containing information about the report-periode and reportee information. The actual report is this excel-file that they have to attach to the instans (template from this page: excel-template. We need to do some controll that the excel-file that they are uploading are correct, such as excel-file-versjon number , report periode in excel matches the report periode in datamodel and other controll that the reportee information in excel matches the one that is actual reporting. |
Closing this as the IDataClient can be injected and used to fetch data on the instance. |
Description
In my app, I extract data from excel attachment that user has uploaded and validate certain data against modeldata/data.
Could you expand constructor for Validate method in IFileValidator to include data.
Additional Information
No response
The text was updated successfully, but these errors were encountered: