Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@availity/dockyard

Package Overview
Dependencies
Maintainers
12
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@availity/dockyard

Convert yup schema to a friendly docs object

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
12
Created
Source

@availity/dockyard

Convert yup schema to a friendly docs object

Version NPM Downloads Dependecy Status

Installation

NPM

npm install @availity/dockyard

Yarn

yarn add @availity/dockyard

Usage

import yup from 'yup';
import getRules from '@availity/dockyard';

const schema = yup.object({
  name: yup.string(),
  dateOfBirth: yup.date(),
});

const rules = getRules(schema, options);

options

const options = {
  compileRequiredFields: false,
  excludeOneOf: false,
  excludeTypes: false,
};
  • compileRequiredFields: removes the word 'required' from the description and adds an array of required fields to the object.
  • excludeOneOf: if oneOf is specified on an item, exclude it from the description.
  • excludeTypes: exclude types from the description.

Keywords

yup

FAQs

Package last updated on 14 May 2025

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