Questions tagged [validation]
Validation is used to check data to make sure it fits whatever required specifications are set for it. Typically Validation is used in checking input data, and in verifying data before storage.
66,384
questions
0
votes
0
answers
7
views
LSTM: return_sequences has to be set "true" or validation is not working
I'm working on timeseries prediction LSTM.
My problem is model compiles and fit only if
model.add(LSTM(lstmUnits, activation=activation_, return_sequences=True))
model.add(Dense(features, activation=...
0
votes
1
answer
9
views
Add Validation for Model creation
I have a Ruby on Rails project with 3 models: User, Group and Task.
The idea is that users can be in different groups and groups can have different users, so member is a table in between connecting ...
0
votes
1
answer
30
views
Input Validation in JS
why my last if condition is not working to show validity error, if user input no value. Actually i am beginner in js making calculator as practice. I shall be very thankful if anyone could resolve it.
...
-1
votes
0
answers
9
views
Huge difference between test and validation accuracy
I have a model (XGBoost) and Im using it on the stock price prediction.
My model is working well on a validation set (for example it makes a small profit in 3 months of data I used for validation) but ...
-1
votes
0
answers
10
views
i want my request to post the data to mongodb database but the data is not posting after adding client side validation to it
i made a registration page were after completing form it post the data to databse but after adding javascript client side validation it the data is not getting post after clicking submit button ,...
0
votes
0
answers
17
views
Method Illuminate\Validation\Validator::validateDocs does not exist
This issue appears after I submit a form and run form validation, even though my form validation is functioning on another page in that file.
Method Illuminate\Validation\Validator::validateDocs does ...
0
votes
0
answers
10
views
Validate that a @DBRef or @DocumentReference exists in mongodb before storing with spring boot
I am writing a spring boot application which depends on spring-boot-starter-data-mongodb and spring-boot-starter-validation. Following class with a self reference is stored in a Mongodb collection (...
0
votes
0
answers
20
views
Laravel 9: How can I use an existing validation rule inside a custom validation rule I created?
I have a form field that can either be a username or an email. When the user submits this form I want to validate this field to see if it is a valid username or a valid email address. I already have a ...
0
votes
0
answers
16
views
How to apply Angular ngForm to components that are in a recursive relationship?
I'm a noob, trying to make a simple self-test app for highschool students.
I simply retrieve the exam/test as JSON from the backend (MongoDB+NodeJS) to this ExamComponent:
ExamComponent
In this ...
0
votes
0
answers
8
views
Validating an object in parts using json-schema
I have a complex object that I need to validate in parts (each part is validated by a different party). I guess I can create a schema file per each part, but I really want to be able to use one file.
...
0
votes
2
answers
36
views
Custom regex validation ASP.NET Webforms
I have a custom validator that is supposed to prompt the user to removed certain characters if found in the textbox. However, the validation is coming up even when there are no matching characters in ...
0
votes
0
answers
8
views
Issue with [Url] data annotaiion
Kind of new to data annotations for validation and need some help on a weird issue I am having. This is a Blazor server application but not sure that makes any difference. In my model I have many ...
0
votes
0
answers
18
views
Submit a Blazor EditForm when another form has a data error
I have multiple EditForms on my page, each in a separate tab. If one form has a validation error I still want to submit one of the other forms if that form is fine. Currently the default behavior is ...
0
votes
0
answers
10
views
How to use inherited validators for abstract class in FluentValidation
I want to validate elementes within my object Form.
Form form = new Form();
form.Elements.Add(new FormNumberElement());
form.Elements.Add(new FormDateElement());
The form contains a List<...
0
votes
0
answers
21
views
Javax validation against array
I have to declare String array variable for an entity to save an array against my postgre database:
@Type(type = "string-array")
@Column(name="IMAGES",nullable = true)
...
0
votes
1
answer
56
views
Java password validation regex
We have password requirements:
Must contain capital letters
Must contain lowercase letters
Must contain numbers
Must contain special characters
There should be no characters repeating one after ...
0
votes
1
answer
44
views
Numeric or multiple decimal points regular expression validation
Looking for help on a regular expression that would allow for numeric values and up to two decimal points (think version validation).
# = Valid
## = Valid
#.# = Valid
##.##
#.#.# = Valid
##.#.# = ...
0
votes
1
answer
14
views
.NET Core 5 model validation : FOR NOT nullable DATA TYPE - the value '' is invalid error
I am trying to use model validation in ASP.NET Core 5 MVC and can't manage to replace this default error message:
The value " is invalid
This also didn't work.
Reference : https://learn....
0
votes
1
answer
24
views
MVC model validation with complex model (virtual member)
I have a model:
public class Student : AbstractDomainObject
{
public Student()
{
Guardians = new HashSet<Guardian>();
}
public int Id { get; set; }
[Required(...
0
votes
0
answers
16
views
Sequelize - How to set a 'validate' for a 'composite unique key' in a Junction Model using Super Many-to-Many?
I have Super Many-to-Many association between models 'A' and 'B' throw junction model 'C'.
const A = sequelize.define('A', { id: {...} });
const B = sequelize.define('B', { id: {...} });
const C = ...
1
vote
1
answer
30
views
Spring boot @Valid is not returning proper message
Controller Method
@PostMapping("/hello")
public Hello hello(@Valid @RequestBody Hello hello) {
return hello;
}
POJO
import jakarta.validation.constraints.NotBlank;
...
0
votes
1
answer
32
views
Hide contents of drop-down list in Excel with password?
I'm trying to hide drop-down list items with a password in excel. Currently a password must be entered to make the selection, but you can still see all choices of the drop down by simply clicking in ...
0
votes
0
answers
22
views
Uncaught TypeError: this.schema.extract is not a function
I have trying to make this validation code in react for the form work using joi. So, when the user types something in the field the error of that field will not be shown but if the field is empty the ...
0
votes
3
answers
63
views
PHP form validation for user registration
Add User
* required field
<label for="firstname"> First Name</label>
<input type="text" name="firstname">
<span class="error&...
0
votes
0
answers
10
views
How to understand which rule was violated in field(using react + yup + formik)?
I have simple validation:
import { object, boolean } from 'yup';
const schema = object().shape({
someBoolean: boolean("this must me boolean").required("required")
});
in UI I ...
0
votes
0
answers
12
views
Laravel Voyager Relationships Validation Error
Similar issue to: 4920 and 5108 in Github
After creating a relationship and setting them as "required" to have input:
Relationship with Rule/Validation
If there is nothing in the field after ...
0
votes
0
answers
31
views
How to set certain elements as invalid in HTML?
In my document I am printing all elements with the given classname like so: console.log(this.document.getElementsByClassName("curClass"));
but how do I set those return forms to invalid?
I ...
-4
votes
1
answer
40
views
JavaScript regular expressions: Symbols, Letters and Digits [closed]
I need your help. I have a password field in the application and I need to check whether the password matches the following patterns:
Only numbers / Only symbols / Only letters
Numbers and symbols / ...
0
votes
1
answer
24
views
Validating input in a connect 4 game in python
I want the user to select a number 1-7 and then check if that this is true, if not then they input a number again.
I am able to check this but if a wrong number is chosen it will ittirate the process ...
1
vote
0
answers
33
views
How do I validate a JSON body using go's validator to make sure only the specified fields are sent with the JSON body?
I have the following struct.
type Product struct {
gorm.Model
Code uuid.UUID `gorm:"type:uuid;" json:"code"`
Name string `json:"name" validate:&...
0
votes
1
answer
12
views
Nest JS validate data from an external API using global pipes
I am developing a Nestjs project. Here I am fetching the data from another rest API. I fetch the data from the API and store it in my database. However, I need to validate the data from the API that I ...
-1
votes
1
answer
46
views
How do i strip html tags with php on textarea?
I am trying to remove tags from a textarea.
I open a html page in a textarea successfully using curl from json data. I removed html tags with php function(strip_tags) but on textarea there are many ...
0
votes
0
answers
18
views
DolphinDB - Verify data consistency during database migration
I have some Oracle and MySQL databases migrated to DolphinDB with dataX and mysql plugins, and I want to check if the migrated data is consistent with the source.
I’ve tried the following 2 methods:
...
0
votes
0
answers
31
views
How to use multiple space in a word in a single cell in google sheets? [closed]
Ex: given input is, "Competition"
my output should be like this "Co mpe titio n"
How can I do this in a single cell?
I need function to do this in google sheet.
0
votes
1
answer
68
views
How can I send a Conflict response with an Id in clojure
I've defined a method where I'm simply checking where a job exists with a specific name and status, in case if job exists I want to send a conflict response but with an id
(defn insert-job [name ...
0
votes
1
answer
25
views
VBA Excel Validation From Named Range Error 1004
I have a macro that adds validations on a change event. In name manager, I had a table that was "Table1" that I changed to "tblBrand". This line of code is supposed to create a ...
-1
votes
0
answers
27
views
Looking for a "Constraint Checker" Solution that handles Constraint Dependencies and Multi-Field Constraints [closed]
A recurring pattern in my code:
data = { ... } # python dict that contains user input as well as database query results
# data shall now be checked against a set of constraints.
Looking for a ...
-1
votes
0
answers
23
views
How to print the object value which is inside a function
I am creating an object inside a function. Now I want to access the value of the object and print it out to the console.
const pattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/;
function ...
0
votes
1
answer
43
views
(Google Sheets) How to remove certain dropdown options after a certain number of cells with said option is met?
I'm currently working on a google sheets file to organize the members of my class. I am currently assigning committees and I want them to choose their committee in Google Sheets. However, I want to ...
1
vote
1
answer
43
views
ASP.NET Core 7 valditate IAsyncEnumerable against data annotation
How to perform a data annotation validation for the input as IAsyncEnumerable in ASP.NET Core 7 API controller POST action. I tried to use the following code, but validation didn't occur.
public ...
-1
votes
0
answers
42
views
allow backspace in regex [duplicate]
Im making a regex to only allow numbers and backspace. I can only type numbers and nothing happens when I press the backspace button. I also like to allow left and right arrow keys.
var numPattern = /[...
-1
votes
1
answer
32
views
Laraval array validation with unique email while update
Updating form but email should be unique, request('contacts.*.id') is empty. It should have ID of that row. How can i get that ID?
return [
'email' => "required|email|unique:...
0
votes
1
answer
37
views
how to use validator with two variables in one textformfield?
I'd like to ask on if there are anyway on how to compare in a conditional statement the two variable. As you can see, couponSalePriceCtrlr and couponOrigPriceCtrlr. I'd like to validate that the user'...
1
vote
0
answers
54
views
Laravel custom validation error while using after_or_equal more than one for same attribute
if i need do this validation
$validated = $request->validate([
'start_date' => [
'after_or_equal:today',
'after_or_equal:'.$event->start_date.'',
'before_or_equal:'...
0
votes
1
answer
14
views
How do I bind to a validation rule in XAML
I am following the example given here:
https://social.technet.microsoft.com/wiki/contents/articles/31422.wpf-passing-a-data-bound-value-to-a-validation-rule.aspx
I get the exception at the following ...
1
vote
0
answers
16
views
Why are my submitError's rendering on the second submit instead of the initial submit
I wanted to create a reusable component that could render server side errors if there are validation errors in the form. On the initial submit even if there are errors coming from the server, they ...
-1
votes
0
answers
42
views
Angular Component: is it possible to select a dom element outside the component's node?
I realize that this is not typically in keeping with the component philosophy, but is it possible for a component to select an element outside of its node?
Specifically, html allows for labels of ...
0
votes
0
answers
27
views
themyleaf validation does not work at spring boot + themyleaf project
I'm struggling to get the validation work on simple web form in spring boot + thymeleaf project.
I've got these dependencies in my pom:
<dependency>
<groupId>org....
1
vote
1
answer
52
views
Validation error "This value should not be blank" when submitting a form on production website
I'm developing a website using php 7.4, symfony 5.4 and twig. This website is deployed on several servers.
On one of the servers (RedHat), a form cannot be submitted. I get the following error 4 times ...
0
votes
0
answers
18
views
Double quotes escape in Error Message property of RegularExpression attribute adds backslash in response message before double quotes
[RegularExpression(@"^(?:[^'""<>,&]+)$", ErrorMessage = "The following characters and white spaces are not allowed: '\"<>,&")]
Above there is a ...