67,723
questions
0
votes
0
answers
29
views
Validate an email address whether it is valid or invalid based on condition [duplicate]
I have a requirement to validate an email address whether it is valid or invalid based on one condition.
([a-zA-Z0-9_\-\.\!\#\$\%\&\'\*\+\/\=\?\^\`\{\|\}\~]+)@((\[a-z]{1,3}\.[a-z]{1,3}\.[a-z]{1,3}\...
0
votes
0
answers
12
views
I can not enter the data through DRF API for model Band_qilish even it is empty
I have validation error when attempting to enter the data for the model Band_qilish through DRF API even it is empty. Help me with how to solve this problem. You can try it here: https://github.com/...
0
votes
1
answer
15
views
Kafka message validation in ErrorHandlingDeserializer
I don't understand how it should be configured to validate message in ErrorHandlingDeserializer.
spring:
json:
use:
type:
headers: false
kafka:
consumer:
key-...
1
vote
1
answer
21
views
Go ozzo validation. check if a stuct field is in a slice
I have a struct like:
type Foo string
type Mystruct struct {
currentFoo Foo
foos []Foo
}
I want to validate that currentFoo is in foos. I am doing
func (s MyStruct) ValidateInput() error {
...
-1
votes
1
answer
22
views
Checkbox button then all other checkbox should be ticked and if all checkbox are ticked and I remove on tick then full checkbox untic [closed]
If I click in full checkbox button then all other checkbox should be ticked and if all checkbox are ticked and I remove on tick then full checkbox unticked along with which we uncticked the checkbox. ...
0
votes
1
answer
43
views
Laravel's request data casted into string (should be integer)
I have this validation rules in request class:
public function rules(): array
{
$countries = getCountriesForValidation();
return [
'total_capital_cost' => 'required|integer|in:' . ...
0
votes
0
answers
10
views
Protecting worksheet cells after data entry
I have been trying different approaches to protect a worksheet from being changed after data entry. The behavior I am trying to achieve is to allow users to make entries into a cell but then lock ...
0
votes
2
answers
55
views
How i can make my validators more reliable?
Im some weeks now im trying to make my own validators for my mobile app ,the thing is that sometimes i get a feedback from my users that they cut them off and they are getting errors , im trying to ...
1
vote
2
answers
47
views
Json schema validation not working with multiple if else conditions
Hi I am pretty sure I am doing something wrong with my json schema, my usecase is that I add some elements to a table using documents and in this case the elements are added through name, value key ...
0
votes
0
answers
31
views
Flutter Validation Bug with Text editing controller
I am using the flutter form in that i am using the text editing controller for calling api and fill The data come from the api to controller but by doing this when I calling the form state .reset it ...
1
vote
1
answer
50
views
Multiple FluentValidator Rules for one Class
I have a single class
public class Foo
{
public string Name { get; set;}
public string Email { get; set;}
public int Id { get; set;}
}
And my objective is to have 2 differents rules in a ...
0
votes
1
answer
58
views
@Validated and @Valid in Spring Controllers work different with return type
I have a Spring Boot 3 project with Validation dependency added.
There is POJO - Human:
@Data
public class Human {
@NotBlank
private String name;
@NotBlank
private String email;
}
...
0
votes
1
answer
57
views
Best way to validate an incoming dataframe (via TSV) row by row
I'm loading a large data frame (15 columns x 30000 rows) from a tab-separated file using pandas.read_csv(). A sample data snippet shown in table below (Thank you to @Lukas for demonstrating how to ...
-1
votes
0
answers
48
views
What is better, an empty string or null in validation data when the data is correct? [closed]
There is a class containing the result of data check.
Do you think it is correct to use an empty string here as an empty value or is Null more rational? And why.
The code looks cleaner when an empty ...
0
votes
0
answers
12
views
Tumor segmentation task : Accuracy curve on validation data starting from a high point
Does anyone know why does the accuracy for the validation set is starting from a high point instead of zero like the training set ? could it be due to class imbalance because the tumor size is small ...
0
votes
0
answers
28
views
Google sheets - data validation or protection
(Tee Time Sheet) I have a Google sheets app (attached) that allows golfers to indicate whether they intend to play golf on a given date.
In column "EL" four golfers have already signed up (&...
-1
votes
2
answers
48
views
ConstraintValidator @Autowired injects null
I am trying to implement a custom annotation that is able to validate data fields across various DTO classes. Specifically, the validation rules are going to be based on regex strings which I intend ...
1
vote
0
answers
26
views
Zod - issues added in superRefine do not pass through custom error map
I'm having troubles with Zod schema custom validations using superRefine(). I have a custom global error map, but the issues which come from the superRefine validation do not pass through the error ...
0
votes
1
answer
48
views
Bool path argument from swagger UI not found in the request
I have a FastAPI endpoint:
@router.post("/")
def create_vacation(
request: fastapi.Request,
paid: bool = False,
) -> None:
print(request.url, paid)
In the swagger, ...
0
votes
1
answer
45
views
How to trigger error message when client-side validation on modal create in ASP.NET Core MVC
I have trouble in display basic error message despite the validation is working (as in preventing the item to be created with invalid value). Here are the code
This is my Views (Index.cshtml)
@model ...
0
votes
1
answer
19
views
Google sheets - data validation multiple arguments
Can you have multiple arguments in data validation for a cell? e.g.
=NOT(ISBLANK(C2)) AND B2=1
Tried numerous functions and web searches without success. Everything that I have tried is not a valid ...
0
votes
0
answers
39
views
Validation error message do not match log error message in Laravel excel validation
How can I resolve an issue where my log error messages are correct, but the validation error messages displayed to the user show a different dose number than expected? Here's my code for logging and ...
0
votes
1
answer
21
views
Azure devbox tools to compare the files
I have been provisioned Azure Devbox environment. Storage containers can be accessed only within devbox.
For Regression Testing ,I want to compare the files stored in azure storage containers vs my ...
-2
votes
0
answers
26
views
is there a script function to validate the email using @ and .? [closed]
i want to validate an email in an html page using script if the textbox misses a @ or . the validation message should pop up
tried adding input type=email inside html tag but it only validates the @ ...
0
votes
0
answers
19
views
Excel table autofilling with mixed formulas and values [closed]
Have an Excel table containing columns of dietary information (date consumed, food item name, calories, carbs, fiber, fat, protein) with one row for each food item consumed. I'm trying to make data ...
0
votes
0
answers
9
views
jquery validation rules not working for jquery steps and there is forms in each step,Form is not validated
there is a jquery step wizard having 7 steps.each steps have a form embedded inside.
and validation rules are there for each form. but when I click next control goes to the next step without ...
1
vote
0
answers
23
views
Validation in multistep form with jquery steps not working while skipping steps
I have a form with 7 steps and there are validation in each step.
onStepChanging and onFinishing logics are as following:
` var form = $("div#wizard").show();
var formWizard = $("#form1&...
0
votes
0
answers
44
views
vuelidate - validating dynamically added/removed fields does not behave as expected
I've been working on a Vue 3 application that utilizes Vuelidate for form validation. The form includes dynamic fields, specifically the questions array, where users can add or remove fields as needed....
0
votes
0
answers
35
views
How to add/override validation in child class in openapi codegen yaml
I have server and client code generated based on a YAML file, which is packaged into a JAR and used across multiple microservices, so I can't apply the @NotNull annotation at the code level.
For ...
0
votes
2
answers
50
views
Form validation triggers after required prop is set to false
After setting the required prop to false using $( '#field' ).prop( 'required', false );, form.checkValidity() still returns false on the field and form.reportValidity() tries to focus on the element.
...
0
votes
3
answers
46
views
Add validation to date TextFormField
I faced with the problem of validating text fields.
Here you need to enter the date in the format dd.mm.yyyy. I also use flutter_multi_formatter package for this form.
import 'package:flutter/material....
0
votes
1
answer
45
views
How to pass a ZOD schema to a client component so i can dynamically set validation for an input field
I have recently created a input field client component for a POC that needed some inbuilt validation. I initially hard coded this as we just wanted to show that the ui does change based on if the ...
0
votes
1
answer
21
views
Laravel - Validate input body is a list
I'm trying to write a validation in Laravel 11 for a POST call which passes a list of objects like this
[{"id": 1, "name": "One"}, {"id": 2, "name": &...
0
votes
2
answers
53
views
Using Python and Pydantic, how can I add custom validation to a field and have it return errors inline with the other errors Pydantic finds?
I have a model for a search endpoint that looks like this:
class ArtistInboundSearchModel(BaseModel):
ids: Optional[str] = Query(default=None)
name: Optional[str] = Query(default=None)
...
0
votes
2
answers
44
views
CSS 2.2: Where to validate it? And why W3C validator provides an option to validate 2.1 but not 2.2?
There are two questions here. I hope at least the second one is not off-topic for Stack Overflow.
The second question is very short:
Where can I validate CSS 2.2?
The first question is longer.
Could ...
0
votes
0
answers
63
views
How to Validate JavaScript and Detect XSS in PDF Files?
I am working on adding JavaScript to a PDF file using the and then validating the presence of JavaScript in the PDF. However, I am having trouble detecting the JavaScript I added. The issue is that ...
0
votes
1
answer
81
views
Yup Conditional Validation for an Array of Objects
I am implementing Yup validations for a dynamic form using React-Hook-Form. The validation requirements depend on the value of contentType. If contentType is either undefined or "Blog Post", ...
1
vote
2
answers
46
views
Spring Boot Custom Validator with Persistence Layer
I'm working on modernizing an application to Spring Boot. Previously, we had used Struts2 as our main application framework, which handled form validation. We were able to easily invoke service layer ...
0
votes
1
answer
39
views
How do I configure Symfony Validator to ignore @OA annotations?
I'm using both OpenAPI OA annotations with Swagger and Symfony Validator annotations, but there seems to be a conflict between the two.
Example snippet:
use Symfony\Component\Validator\Constraints as ...
2
votes
1
answer
38
views
Is it possible to apply different protovalidate validation rules to the same protobuf message
I've been looking at using protovalidate to power a complicated API validation use case that I have.
Here is the scenario I have (simplified). I have a single proto message, let's call it FooRequest:
...
0
votes
0
answers
45
views
Merging multiple zod unions
type A = A1 | A2;
type B = B1 | B2;
type MyType = A & B & C;
const schemaA = zod.union([schemaA1, schemaA2]);
const schemaB = zod.union([schemaB1, schemaB2]);
const schemaMyType = zod....
0
votes
0
answers
36
views
Spring Boot Validation and Generics
I have a class that implements generics:
public abstract class BasicServices<DTO, CONTROLLER extends IController>{
@ResponseStatus(HttpStatus.CREATED)
@PostMapping(value = "&...
0
votes
1
answer
56
views
Put multiple drop down list value into sumifs function
My data Example:
In B16 =SUMIFS($B$7:$B$14;$C$7:$C$14;C16;$D$7:$D$14;D16;$E$7:$E$14;E16)
In row 16 below sex/type/state (C16/D16/E16) i create a dropdown and
i have enable select multiple item for ...
0
votes
1
answer
63
views
Blazor firing submit event even when the validations are not ready
I have a form defined as follows :
@page "/booking"
@rendermode RenderMode.InteractiveServer
@using BlazorApp1.Models
@using BlazorApp1.Services
@inject IEntityService<Customer> ...
0
votes
1
answer
61
views
MongoDb schema validation error when schema specified ['string'] as bson type of attribute
I have a peice of python code which is using the PyMongo library to insert into my mongodb Collection hosted on MongoDB Atlas.
Im trying to insert the following doc into a collection called Customer ...
0
votes
1
answer
35
views
flutter TextFormField validator not working for some fields
I have multiple fields that neeed to be validated for required in page but with the same code some filed was working fine & some was not can someone please help me.
As mention in code
...
1
vote
1
answer
45
views
Keycloak Custom Registration Flow Fails with "KC-SERVICES0013: Failed authentication: java.lang.NullPointerException" Error
I am following this guide and trying to create my custom registration flow in Keycloak using two forms and custom templates. Below I am providing the code of the authenticator factory for the first ...
0
votes
1
answer
31
views
How to handle swagger's default data in C# data model of DataAnnotation properties
I have a C# property model in which properties like FirstName, LastName & Email but I have required validations but when I submit the blank request from the Swagger then default data is coming in ...
-2
votes
0
answers
52
views
Python validate in class from list in main
I have a class in my project called Student. In my main I have a list of houses:
houses = ["Gryffindor", "Ravenclaw", "Hufflepuff", "Slytherin"]
I was taught ...
0
votes
0
answers
11
views
Handling Autofilled Form Values Before User Interaction and Understanding Browser Behavior
I’m encountering an issue with browser autofill functionality and form validation that has me puzzled. Here’s what’s happening:
Scenario:
When a form is loaded, the browser autofills the username ...