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

@mintlify/validation

Package Overview
Dependencies
Maintainers
5
Versions
246
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintlify/validation - npm Package Compare versions

Comparing version 0.1.82 to 0.1.83

4

dist/openapi/convertSchema.js

@@ -322,3 +322,3 @@ import lcm from 'lcm';

copyKeyIfDefined('example', schema, numberEnumProps);
return Object.assign({ type: schema.type === 'number' ? 'numberEnum' : 'integerEnum', enum: schema.enum }, numberEnumProps);
return Object.assign({ type: schema.type === 'number' ? 'enum<number>' : 'enum<integer>', enum: schema.enum }, numberEnumProps);
}

@@ -339,3 +339,3 @@ const numberProps = sharedProps;

copyKeyIfDefined('example', schema, stringEnumProps);
return Object.assign({ type: 'stringEnum', enum: schema.enum }, stringEnumProps);
return Object.assign({ type: 'enum<string>', enum: schema.enum }, stringEnumProps);
}

@@ -342,0 +342,0 @@ const stringProps = sharedProps;

@@ -57,3 +57,3 @@ import { InvalidSchemaError } from './convertOpenApi.js';

if (securityScheme.scheme === 'basic') {
parameterSections.header['Authentication'] = {
parameterSections.header['Authorization'] = {
description: (_a = securityScheme.description) !== null && _a !== void 0 ? _a : 'Basic authentication header of the form `Basic <encoded-value>`, where `<encoded-value>` is the base64-encoded string `username:password`.',

@@ -60,0 +60,0 @@ required: true,

@@ -22,3 +22,3 @@ export const convertServers = ({ servers }) => {

{
type: 'stringEnum',
type: 'enum<string>',
enum: variable.enum,

@@ -25,0 +25,0 @@ description: variable.description,

@@ -24,3 +24,3 @@ export type Endpoint = {

export type ServerVariableStringEnumSchema = {
type: 'stringEnum';
type: 'enum<string>';
enum: string[];

@@ -67,3 +67,3 @@ default: string;

export type DataSchemaArray = [DataSchema, ...DataSchema[]];
export declare const typeList: readonly ["boolean", "string", "number", "integer", "object", "array", "stringEnum", "numberEnum", "integerEnum", "null", "any"];
export declare const typeList: readonly ["boolean", "string", "number", "integer", "object", "array", "enum<string>", "enum<number>", "enum<integer>", "null", "any"];
export type SchemaType = (typeof typeList)[number];

@@ -117,7 +117,7 @@ export type DataSchema = BooleanSchema | StringSchema | NumberSchema | ObjectSchema | ArraySchema | StringEnumSchema | NumberEnumSchema | NullSchema | AnySchema;

export type StringEnumSchema = {
type: 'stringEnum';
type: 'enum<string>';
enum: string[];
} & BaseSchema<string>;
export type NumberEnumSchema = {
type: 'numberEnum' | 'integerEnum';
type: 'enum<number>' | 'enum<integer>';
enum: number[];

@@ -124,0 +124,0 @@ } & BaseSchema<number>;

@@ -8,7 +8,7 @@ export const typeList = [

'array',
'stringEnum',
'numberEnum',
'integerEnum',
'enum<string>',
'enum<number>',
'enum<integer>',
'null',
'any',
];
{
"name": "@mintlify/validation",
"version": "0.1.82",
"version": "0.1.83",
"description": "Validates mint.json files",

@@ -85,3 +85,3 @@ "author": "Mintlify, Inc.",

},
"gitHead": "7c0ea868488ca16919979132c3f1fbc1801ca493"
"gitHead": "0c60276f72a8afd7c6a9b91f90fa08b838fe6790"
}

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