New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@corupta/joi-object-id

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corupta/joi-object-id

A Joi extension to validation MongoDB ObjectId formats

  • 2.3.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@meanie/joi-object-id

npm version node dependencies github issues

A Joi extension to automatically convert ISO date strings to object-id objects

Meanie

Features

  • Extends the existing string validator
  • Validates incoming values as MongoDB ObjectId values
  • Automatically converts values to Mongoose ObjectId instances

Installation

#npm
npm install @meanie/joi-object-id

#yarn
yarn add @meanie/joi-object-id

Usage

const Joi = require('@hapi/joi');
const JoiObjectId = require('@meanie/joi-object-id');

module.exports = Joi.extend(JoiObjectId);

Examples

const schema = Joi.object({
  user: Joi.string().objectId(),
});

Issues & feature requests

Please report any bugs, issues, suggestions and feature requests in the meanie-joi-object-id issue tracker.

Contributing

Pull requests are welcome! If you would like to contribute to Meanie, please check out the Meanie contributing guidelines.

Sponsor

This package has been kindly sponsored by Hello Club, an all in one club and membership management solution complete with booking system, automated membership renewals, online payments and integrated access and light control. Check us out if you happen to belong to any kind of club or if you know someone who helps run a club!

License

(MIT License)

Copyright 2019-2020, Adam Reis

Keywords

FAQs

Package last updated on 03 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc