Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

joi

How to extend a Joi schema?

October 29, 2022 by Magenaut

I have a joi schema called user

Categories Q&A, ReactJS Tags javascript, joi, reactjs Leave a comment

how can i validate image using Joi-browser in react

October 13, 2022 by Magenaut

in the backend there is no issue i can upload the photo using POSTMAN but i cant upload from the client(react ) side its says ‘image must be string’

Categories Node.js, Q&A Tags joi, node.js, reactjs Leave a comment

How to test files and json data at the same time with jest?

October 12, 2022 by Magenaut

I have a post request with express that upload a file and some data to the mongodb:

Categories Node.js, Q&A Tags jestjs, joi, node.js, unit-testing, validation Leave a comment

How to send joi validation error in API response

October 12, 2022 by Magenaut

I want to send joi validation error in response how can I do this
here is my code but it is not working,

Categories Node.js, Q&A Tags express, joi, node.js Leave a comment

Joi nested when validation

October 11, 2022 by Magenaut

I am trying to validate a nested object conditionally based upon a value in the parent.

Categories Node.js, Q&A Tags javascript, joi, node.js, validation Leave a comment

how to validate two joi schema objects

October 9, 2022 by Magenaut

I have two users customer and manager. manager has some extra fields in its schema. So for that i have created two joi schema objects:

Categories Node.js, Q&A Tags joi, node.js, npm Leave a comment

Node.js + Joi how to display a custom error messages?

October 7, 2022 by Magenaut

It seems pretty straight forward to validate user’s input in Node.js RESTapi with Joi.

Categories Node.js, Q&A Tags joi, node.js Leave a comment

How to add custom validator function in Joi?

October 2, 2022 by Magenaut

I have Joi schema and want to add a custom validator for validating data which isn’t possible with default Joi validators.

Categories Node.js, Q&A Tags express, javascript, joi, node.js, validation Leave a comment

Nodejs – Joi Check if string is in a given list

October 1, 2022 by Magenaut

I’m using Joi package for server side Validation.
I want to check if a given string is in a given list or if it is not in a given list.(define black list or white list for values)
sth like an “in” or “notIn” function.how can I do that?

Categories Node.js, Q&A Tags joi, node.js Leave a comment

Joi validating time field

September 30, 2022 by Magenaut

There is object with a property time (22:30:00).

Categories Node.js, Q&A Tags joi, node.js, validation Leave a comment
Older posts
Page1 Page2 Next →

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress