67,756 questions
0
votes
1
answer
61
views
Remove error from Inputfield when user input value in field in React [closed]
My Approach:
const validateField = (field, value) => {
if (!value.trim()) {
return "This field is required";
}
const regexRules = {
name: /^[A-Za-z ]+$/,
email: /^[^\...
2
votes
1
answer
126
views
Trying to learn how getchar works
I am encountering a problem inside a while loop that is embedded in a for loop iterating through a struct of arrays. The issues I am coming across is before the array iterates again, I want to have ...
Advice
0
votes
0
replies
25
views
Designing a props-driven test framework for data quality validation - best patterns?
Question: I'm building a testing system for a data quality SaaS app where tests are entirely props-driven (similar to React component testing philosophy).
Goal: Create reusable, composable test ...
0
votes
0
answers
49
views
Keycloak: how to connect custom validator?
Hello I have a project in which I need to validate some code if chosen role is Scientist. I have written my validator (current validation logic is irrelevant)
package com.example.keycloak;
import org....
1
vote
0
answers
46
views
Issue with Instantiating CsvValidator.ValidatorBuilder Due to Package-Private Access in csv-validator-java-api
I've been working with the csv-validator-java-api and came across a potential discrepancy in its documentation (or maybe I misunderstood how to use it). According to the documentation, the inner ...
1
vote
1
answer
45
views
Phalcon custom validator's allowEmpty method is ignored, how to fix?
I've created a custom validator in Phalcon by extending Phalcon\Filter\Validation\AbstractValidator. I implemented the allowEmpty method to define a custom rule for what should be considered an "...
0
votes
1
answer
126
views
JS Textarea validation
I am creating a contact form and validating using javascript event listener. The invalid event listener is working for the input elements from the deafult required class added to the input fields. ...
0
votes
1
answer
85
views
Why am I getting Event validation failed when defining query params in a Godspeed HTTP event?
I’m creating a simple HTTP GET event in the Godspeed framework. My goal is to accept a query parameter called name and return a response. However, when I define the event YAML with type: string ...
0
votes
0
answers
283
views
Validation problem with Zod Resolver using PrimeVue forms
I'm having somewhat of an issue using Zod form resolver.
Using PrimeVue forms, I have validate-on-value-update activated:
<Form
v-slot="$form"
:initial-values="form.data()"...
0
votes
3
answers
113
views
Validate a globed-like path
I am writing a API for a program. The program has a native support of "globed" paths such as img-0*.png. I would like to know how to be sure that there is at least a file satisfying that ...
0
votes
1
answer
154
views
My VBA code for creating a validation list in a workbook throws an error in method add formula1, but it works if I create it manually
This is an Excel VBA problem I can't solve.
I have a quite large and complex workbook, with many sheets. The main working sheet is named "Riassuntivo". In it, I create by code different ...
0
votes
1
answer
40
views
MongoDB Validation Enforce property uniqueness within a multi-nested array for a single document
I have a collection with objects like this:
{
"_id": "test",
"rows": [
{
"id": "r1",
"blocks": [
{
&...
1
vote
2
answers
65
views
Visual Studio: XML validation against DTD fails — how to find the error?
Environment: Windows 12, Visual Studio 2022 (Community Edition)
I’m trying to validate an XML file against its DTD in Visual Studio.
When I run the validation, I get the error.
xml file (sample.xml)
&...
0
votes
0
answers
87
views
How to validate the image dimension in Blazor?
According to the ASP.NET Core Blazor file uploads:
OpenReadStream enforces a maximum size in bytes of its Stream. Reading one file or multiple files larger than 500 KB results in an exception. This ...
-1
votes
1
answer
76
views
Problem with textbox validation and next control focus
I am validating a textbox (specifically, a Telerik RadTextBox, but I don't think that is the problem). I've tried both RequiredFieldValidator and CustomValidator. When I press Tab, validation works ...
0
votes
3
answers
79
views
How to set custom validation message for HTML input on mouseenter?
I have an ASP.NET Core project and I'm trying to set custom text for the validation tooltip for the HTML form input field. By default, it shows "Please fill out this field". I tried to add ...
1
vote
1
answer
38
views
disable some parts of a form
How can I disable a whole section of a form in TypeScript/React?
Body:
I'm building a form in TypeScript (using React), and I want to disable an entire section of the form — similar to how Stack ...
1
vote
2
answers
128
views
How can I improve input validation in a C# console application? [closed]
I’m currently working on a Student Grade Management System in C# as part of my learning project. The application allows users to add students, assign grades, calculate averages, and display student ...
0
votes
1
answer
73
views
Cannot pass validation because lists that populate dropdowns are invalid for some reason
ListingController.cs:
public IActionResult Create()
{
CreateListingViewModel model = new()
{
AllCities = new SelectList(_addressRepo.AllCities()),
AllItems = new SelectList(...
1
vote
1
answer
85
views
Read-and-validate istream equivalent to fscanf
I have a very simple scenario that looks like
std::ifstream file("myfile.txt");
std::string discard;
int num;
file >> discard >> num; // to consume e.g. HEADER 55
Despite all ...
0
votes
1
answer
297
views
How to collect and return multiple validation errors from service layer in .NET 8 instead of throwing exceptions?
if (!hasAnyPhoneNumber)
throw new NotEmptyException("PhoneNumber", MessageHelper.GetMessage(ErrorMessageName.NOT_EMPTY));
I haven't tried any specific solution yet, but my goal is to ...
0
votes
2
answers
116
views
Data Validation List based on Matched Cell Reference
I am seeking help with an Match Based Array that is compatible for Data Validation List / Cell Drop Down.
Basically what I need is a Drop down list with options based on a Cell Reference Match with ...
0
votes
1
answer
108
views
How to validate DAX queries in .NET before executing against Azure Analysis Services?
I’m working with a client who wants to reduce the execution time of my application when making multiple DAX calls.
Currently, the flow is:
I use an LLM to generate a DAX query based on report ...
0
votes
1
answer
133
views
How to Validate per View/ViewModel
Im currently making a visitor app for my work place, its a simple app allowing visitors to sign in and out, i have text boxes asking for the visitors information. My SignInView has alot more textboxes ...
1
vote
0
answers
54
views
Converting a input type date in html to a time.Time date type in GO [duplicate]
A small example of the code
The backend example:
package main
import (
"time"
"github.com/gin-gonic/gin"
"github.com/go-playground/validator"
)
type ...