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

@kmudrick/io-ts-openapi

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kmudrick/io-ts-openapi - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

2

dist/src/json-schema.d.ts

@@ -41,3 +41,3 @@ import * as t from "io-ts";

export interface ObjectSchema {
type: "object";
type?: "object";
properties?: {

@@ -44,0 +44,0 @@ [key: string]: JSONSchema;

@@ -71,12 +71,7 @@ "use strict";

});
exports.ObjectSchema = t.recursion("ObjectSchema", () => t.intersection([
t.type({
type: t.literal("object"),
}),
t.partial({
required: t.array(t.string),
properties: t.record(t.string, exports.JSONSchema),
additionalProperties: exports.JSONSchema,
}),
]));
exports.ObjectSchema = t.recursion("ObjectSchema", () => t.partial({
required: t.array(t.string),
properties: t.record(t.string, exports.JSONSchema),
additionalProperties: exports.JSONSchema,
}));
exports.ArraySchema = t.recursion("ArraySchema", () => t.intersection([

@@ -83,0 +78,0 @@ t.type({

@@ -77,2 +77,4 @@ "use strict";

return t.booleanType;
case undefined:
return toObjectCombinator(schema, config);
case "object":

@@ -79,0 +81,0 @@ return toObjectCombinator(schema, config);

{
"name": "@kmudrick/io-ts-openapi",
"version": "0.0.19",
"version": "0.0.20",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

@@ -61,3 +61,3 @@ import * as t from "io-ts";

export interface ObjectSchema {
type: "object";
type?: "object";
properties?: { [key: string]: JSONSchema }; // fixme

@@ -71,12 +71,7 @@ required?: Array<string>;

() =>
t.intersection([
t.type({
type: t.literal("object"),
}),
t.partial({
required: t.array(t.string),
properties: t.record(t.string, JSONSchema),
additionalProperties: JSONSchema,
}),
])
t.partial({
required: t.array(t.string),
properties: t.record(t.string, JSONSchema),
additionalProperties: JSONSchema,
})
);

@@ -83,0 +78,0 @@

@@ -69,2 +69,4 @@ import * as t from "io-ts-codegen";

return t.booleanType;
case undefined:
return toObjectCombinator(schema, config);
case "object":

@@ -71,0 +73,0 @@ return toObjectCombinator(schema, config);

Sorry, the diff of this file is not supported yet

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