Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ovidb/graphql-to-yup

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ovidb/graphql-to-yup - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "@ovidb/graphql-to-yup",
"version": "1.0.2",
"version": "1.0.3",
"description": "Generate Yup schema from GraphQL",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,6 +25,8 @@ # Plugin for graphql-codegen to Generate Yup schema from GraphQL

the-output-file.js:
- @ovidb/graphql-to-yup:
inputTypeNames:
- TheTypesYouWantToGenerateSchemaFor
- AnotherInputType
```
plugins:
- @ovidb/graphql-to-yup
config:
inputTypeNames:
- TheTypesYouWantToGenerateSchemaFor
- AnotherInputType
```

@@ -26,3 +26,3 @@ const getScalarType = (type, required) => {

const getEnumType = (type, required) => {
return `yup.mixed.oneOf([${type
return `yup.mixed().oneOf([${type
.getValues()

@@ -29,0 +29,0 @@ .map(obj => `'${obj.value}'`)

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