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

@mintlify/validation

Package Overview
Dependencies
Maintainers
0
Versions
309
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.301 to 0.1.302

2

dist/openapi/OpenApiToEndpointConverter.d.ts

@@ -32,4 +32,4 @@ import { OpenAPIV3_1 } from 'openapi-types';

convertResponses(): ResponseSchema<IncrementalDataSchemaArray>;
convertContent(debugPath: string[], rawContent: Record<string, OpenAPIV3_1.MediaTypeObject> | undefined, dereferencedContent: Record<string, OpenAPIV3_1.MediaTypeObject> | undefined, location: 'request' | 'response', required?: boolean): Record<string, ContentSchema<IncrementalDataSchemaArray>>;
convertContent(debugPath: string[], rawContent: Record<string, OpenAPIV3_1.MediaTypeObject> | undefined, dereferencedContent: Record<string, OpenAPIV3_1.MediaTypeObject> | undefined, location: 'request' | 'response', required?: boolean, description?: string): Record<string, ContentSchema<IncrementalDataSchemaArray>>;
static convert(rawDocument: OpenAPIV3_1.Document, resolvedDocument: OpenAPIV3_1.Document, path: string, method: HttpMethod, safeParse?: boolean): Endpoint<IncrementalDataSchemaArray>;
}

@@ -182,3 +182,3 @@ import { BaseConverter } from './BaseConverter.js';

const requestBody = this.operationObject.requestBody;
return this.convertContent(['#', 'paths', this.path, this.method, 'requestBody', 'content'], rawRequestBody.content, requestBody === null || requestBody === void 0 ? void 0 : requestBody.content, 'request', requestBody === null || requestBody === void 0 ? void 0 : requestBody.required);
return this.convertContent(['#', 'paths', this.path, this.method, 'requestBody', 'content'], rawRequestBody.content, requestBody === null || requestBody === void 0 ? void 0 : requestBody.content, 'request', requestBody === null || requestBody === void 0 ? void 0 : requestBody.required, requestBody === null || requestBody === void 0 ? void 0 : requestBody.description);
}

@@ -201,3 +201,3 @@ convertResponses() {

statusCode,
this.convertContent(['#', 'paths', this.path, this.method, 'responses', statusCode, 'content'], rawResponse.content, response === null || response === void 0 ? void 0 : response.content, 'response'),
this.convertContent(['#', 'paths', this.path, this.method, 'responses', statusCode, 'content'], rawResponse.content, response === null || response === void 0 ? void 0 : response.content, 'response', undefined, response === null || response === void 0 ? void 0 : response.description),
];

@@ -207,3 +207,3 @@ });

}
convertContent(debugPath, rawContent, dereferencedContent, location, required) {
convertContent(debugPath, rawContent, dereferencedContent, location, required, description) {
if (!rawContent || !dereferencedContent) {

@@ -226,3 +226,3 @@ return {};

const examples = this.convertExamples(dereferencedMediaObject === null || dereferencedMediaObject === void 0 ? void 0 : dereferencedMediaObject.examples, dereferencedMediaObject === null || dereferencedMediaObject === void 0 ? void 0 : dereferencedMediaObject.example, schemaArray);
return [contentType, { schemaArray: incrementalSchemaArray, examples }];
return [contentType, { schemaArray: incrementalSchemaArray, examples, description }];
});

@@ -229,0 +229,0 @@ return Object.fromEntries(newEntries);

@@ -49,2 +49,3 @@ import { OpenAPIV3_1 } from 'openapi-types';

schemaArray: D;
description?: string;
examples: {

@@ -51,0 +52,0 @@ [title: string]: ExampleSchema;

{
"name": "@mintlify/validation",
"version": "0.1.301",
"version": "0.1.302",
"description": "Validates mint.json files",

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

},
"gitHead": "2041554d9c6d781ccfff796e5cb90982bf13ce60"
"gitHead": "213b305c8e86b22fff5da6e5305c8bd2ccf7c08f"
}

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