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

@samchon/openapi

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@samchon/openapi - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2-dev.20240411

12

lib/OpenApi.d.ts

@@ -113,3 +113,3 @@ import { OpenApiV3 } from "./OpenApiV3";

}
type IJsonSchema = IJsonSchema.IConstant | IJsonSchema.IBoolean | IJsonSchema.IInteger | IJsonSchema.INumber | IJsonSchema.IString | IJsonSchema.IArray | IJsonSchema.IObject | IJsonSchema.IReference | IJsonSchema.IOneOf | IJsonSchema.INullOnly | IJsonSchema.IUnknown;
type IJsonSchema = IJsonSchema.IConstant | IJsonSchema.IBoolean | IJsonSchema.IInteger | IJsonSchema.INumber | IJsonSchema.IString | IJsonSchema.IArray | IJsonSchema.IObject | IJsonSchema.IReference | IJsonSchema.IOneOf | IJsonSchema.INull | IJsonSchema.IUnknown;
namespace IJsonSchema {

@@ -139,2 +139,9 @@ interface IConstant extends __IAttribute {

interface IString extends __ISignificant<"string"> {
contentMediaType?: string;
default?: string;
enum?: string[];
format?: "binary" | "byte" | "password" | "regex" | "uuid" | "email" | "hostname" | "idn-email" | "idn-hostname" | "iri" | "iri-reference" | "ipv4" | "ipv6" | "uri" | "uri-reference" | "uri-template" | "url" | "date-time" | "date" | "time" | "duration" | "json-pointer" | "relative-json-pointer" | (string & {});
pattern?: string;
/** @type uint */ minLength?: number;
/** @type uint */ maxLength?: number;
}

@@ -163,3 +170,3 @@ interface IArray extends __ISignificant<"array"> {

}
interface INullOnly extends __ISignificant<"null"> {
interface INull extends __ISignificant<"null"> {
}

@@ -175,2 +182,3 @@ interface IUnknown extends __IAttribute {

description?: string;
deprecated?: boolean;
}

@@ -177,0 +185,0 @@ }

4

lib/OpenApiV3_1.d.ts

@@ -108,3 +108,3 @@ /**

}
type IJsonSchema = IJsonSchema.IMixed | IJsonSchema.IConstant | IJsonSchema.IBoolean | IJsonSchema.IInteger | IJsonSchema.INumber | IJsonSchema.IString | IJsonSchema.IArray | IJsonSchema.IObject | IJsonSchema.IReference | IJsonSchema.IUnknown | IJsonSchema.INullOnly | IJsonSchema.IAllOf | IJsonSchema.IAnyOf | IJsonSchema.IOneOf;
type IJsonSchema = IJsonSchema.IMixed | IJsonSchema.IConstant | IJsonSchema.IBoolean | IJsonSchema.IInteger | IJsonSchema.INumber | IJsonSchema.IString | IJsonSchema.IArray | IJsonSchema.IObject | IJsonSchema.IReference | IJsonSchema.IUnknown | IJsonSchema.INull | IJsonSchema.IAllOf | IJsonSchema.IAnyOf | IJsonSchema.IOneOf;
namespace IJsonSchema {

@@ -153,3 +153,3 @@ interface IMixed extends IConstant, Omit<IBoolean, "type" | "default" | "enum">, Omit<INumber, "type" | "default" | "enum">, Omit<IString, "type" | "default" | "enum">, Omit<IArray, "type">, Omit<IObject, "type">, IOneOf, IAnyOf, IAllOf {

}
interface INullOnly extends __ISignificant<"null"> {
interface INull extends __ISignificant<"null"> {
}

@@ -156,0 +156,0 @@ interface IAllOf extends __IAttribute {

{
"name": "@samchon/openapi",
"version": "0.1.1",
"version": "0.1.2-dev.20240411",
"description": "",

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

@@ -476,4 +476,4 @@ import { OpenApi } from "../OpenApi";

schema: OpenApiV3_1.IJsonSchema,
): schema is OpenApiV3_1.IJsonSchema.INullOnly =>
(schema as OpenApiV3_1.IJsonSchema.INullOnly).type === "null";
): schema is OpenApiV3_1.IJsonSchema.INull =>
(schema as OpenApiV3_1.IJsonSchema.INull).type === "null";
export const isMixed = (

@@ -480,0 +480,0 @@ schema: OpenApiV3_1.IJsonSchema,

@@ -253,3 +253,3 @@ import { OpenApi } from "../OpenApi";

nullable.value === true &&
!union.some((e) => (e as OpenApi.IJsonSchema.INullOnly).type === "null")
!union.some((e) => (e as OpenApi.IJsonSchema.INull).type === "null")
)

@@ -256,0 +256,0 @@ union.push({ type: "null" });

@@ -304,3 +304,3 @@ import { OpenApi } from "../OpenApi";

nullable.value === true &&
!union.some((e) => (e as OpenApi.IJsonSchema.INullOnly).type === "null")
!union.some((e) => (e as OpenApi.IJsonSchema.INull).type === "null")
)

@@ -307,0 +307,0 @@ union.push({ type: "null" });

@@ -175,3 +175,3 @@ import { OpenApiV3 } from "./OpenApiV3";

| IJsonSchema.IOneOf
| IJsonSchema.INullOnly
| IJsonSchema.INull
| IJsonSchema.IUnknown;

@@ -201,3 +201,35 @@ export namespace IJsonSchema {

}
export interface IString extends __ISignificant<"string"> {}
export interface IString extends __ISignificant<"string"> {
contentMediaType?: string;
default?: string;
enum?: string[];
format?:
| "binary"
| "byte"
| "password"
| "regex"
| "uuid"
| "email"
| "hostname"
| "idn-email"
| "idn-hostname"
| "iri"
| "iri-reference"
| "ipv4"
| "ipv6"
| "uri"
| "uri-reference"
| "uri-template"
| "url"
| "date-time"
| "date"
| "time"
| "duration"
| "json-pointer"
| "relative-json-pointer"
| (string & {});
pattern?: string;
/** @type uint */ minLength?: number;
/** @type uint */ maxLength?: number;
}

@@ -227,3 +259,3 @@ export interface IArray extends __ISignificant<"array"> {

}
export interface INullOnly extends __ISignificant<"null"> {}
export interface INull extends __ISignificant<"null"> {}
export interface IUnknown extends __IAttribute {

@@ -239,2 +271,3 @@ type?: undefined;

description?: string;
deprecated?: boolean;
}

@@ -241,0 +274,0 @@ }

@@ -168,3 +168,3 @@ /**

| IJsonSchema.IUnknown
| IJsonSchema.INullOnly
| IJsonSchema.INull
| IJsonSchema.IAllOf

@@ -253,3 +253,3 @@ | IJsonSchema.IAnyOf

}
export interface INullOnly extends __ISignificant<"null"> {}
export interface INull extends __ISignificant<"null"> {}
export interface IAllOf extends __IAttribute {

@@ -256,0 +256,0 @@ allOf: IJsonSchema[];

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