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

@aomex/validator

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aomex/validator - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

6

CHANGELOG.md
# @aomex/validator
## 0.0.12
### Patch Changes
- [`0b98122`](https://github.com/aomex/aomex/commit/0b9812229a950b7d2a8d1ed337a276a3bae62c15) Thanks [@geekact](https://github.com/geekact)! - feat(validator): set some fields in both parameterObject and schemaObject
## 0.0.11

@@ -4,0 +10,0 @@

5

dist/index.d.ts

@@ -13,6 +13,3 @@ import { OpenAPI } from '@aomex/openapi-type';

}
/**
* Useless fields: [title, externalDocs]
*/
type PartialOpenAPISchema = Pick<OpenAPI.SchemaObject, 'description' | 'deprecated' | 'example'>;
type PartialOpenAPISchema = Pick<OpenAPI.SchemaObject, 'title' | 'description' | 'deprecated' | 'example' | 'externalDocs'>;
interface ValidatorOptions<Type> {

@@ -19,0 +16,0 @@ defaultValue?: Type | (() => Type);

8

dist/index.js

@@ -18,7 +18,9 @@ var __defProp = Object.defineProperty;

nullable,
docs: { description, deprecated, example, ...docs } = {},
docs: { description, deprecated, example, ...schemaProperties } = {},
defaultValue
} = validator.config;
const bothProperties = { description, deprecated, example };
const schema = {
...docs,
...schemaProperties,
...bothProperties,
default: validator.getDefaultValue(defaultValue),

@@ -29,4 +31,4 @@ nullable: nullable || void 0,

const result = {
...bothProperties,
required: required || void 0,
...{ description, deprecated, example },
schema

@@ -33,0 +35,0 @@ };

{
"name": "@aomex/validator",
"version": "0.0.11",
"version": "0.0.12",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet

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