Category "validation"

JSON array item validation

I'd like to have tooling to perform certain validations on JSON. Explanation with examples: Given JSON fragment: { "optionsMinValue": 0 "optionsMaxValue

Django form_valid method

In my form's view I wonder what if I don't add product_form.save method in the code below and what if I add that: def form_valid(self, form): product_fo

Django form_valid method

In my form's view I wonder what if I don't add product_form.save method in the code below and what if I add that: def form_valid(self, form): product_fo

FastAPI route: Adding dynamic path parameters validation

I'm trying to add validation to my route in a fastapi server, followed the instructions here and managed to have added validation on my int path parameters like

How "equals" in express-validator works?

I have to validate two fields are equals. In this case both passwords are the same. The problem it is that the "equals" from express-validator is not working. T

Form Validation not working using react and StepWizard

Can someone explain why this validation is not working properly? When I click the submit button I should check to see if the field is empty, if it is it should

Check Textbox text is excel valid formula and use that function to calculate in VBA without storing any value in excel sheet

I am trying to learn EXCEL VBA. One of the tasks I am stuck with is how to verify textbox1.text is valid excel formula. I tried Worksheetfunction.isfunction(use

Google Sheets - Removing the used items from drop-down lists

In Google Sheets I have a column containing a list of available Serial Numbers (say, column A). Somewhere else (say, column B) a user must choose the serial num

Auto clear dependent data validation in Google Sheets

I have a Google sheet where I’m using a dependent drop down for users to select one option and then select a second option depending on their first choice

Validate Requests in NSwag generated Client

I have a .NET 6 Webclient and REST Contract, that is generated from a YAML with NSwag. The contract contains some validation properties. Is there any way to val

How to remove required field in checkout

How to change the required field to an optional field on the checkout page that can be enabled and disabled from the backend like a middle name?

How to avoid duplicate elements in slice in json validation?

Although I am not a pro-Golang developer, I am trying to restrict the duplicate elements from my array in struct during JSON validation. type Test struct { Test

Puppet validate lookup of ip address with port eg 1.2.3.4:5678

I am performing a lookup as a top scope variable in a Puppet manifest for values that will contain a concatenated IP address and port, e.g., 1.2.3.4:5678. I kno

yup date validation - Start Date must not be same as end date

I am currently stuck on how to do validation with yup for same date. Currently I am able to validate if endDate is not before startDate using : schema = yup.obj

How can go-validator check fields against their zero value?

I'm trying to use https://github.com/go-playground/validator and need to ensure that user configuration has an inner struct populated (i.e. not Zero) while stil

Accessibility error in offcanvas element in Joomla site

I have a problem with a validation error to http://www.tsiapos.gr/ (Joomla 3.9.10 - yootheme template0 https://wave.webaim.org/report#/https://tsiapos.gr/ which

HTML - how to clear data validation once error has been removed

I am making a cloud page and have set an alphabetic data validation in html which is working fine in that a user cannot enter anything other than letters. The i

Fasterer yields "Calling argumentless methods within blocks is slower than using symbol to proc" within my validations. How to solve it?

I am coding my own ERP. For the People (model class) I have the following validations: class People < ApplicationRecord # some code for N:M relations #

How i can get list valid prefix mobile phone from all country, including operator name?

I need to save into database list of prefix valid sms mobile phone number including operator name from "ALL COUNTRY". For example: PREFIX: +62812 COUNTRY: INDON

Object validation - How to validate [key: number]: string

I'm trying to write validator for JSON returned from Bugzilla API. When I'm fetching comments data, I'm getting something like this: curl https://bugzilla.mozil