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

@typespec/openapi3

Package Overview
Dependencies
Maintainers
1
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typespec/openapi3 - npm Package Compare versions

Comparing version 0.53.0-dev.0 to 0.53.0-dev.1

12

dist/src/schema-emitter.js

@@ -195,3 +195,3 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

__classPrivateFieldGet(this, _OpenAPI3SchemaEmitter_instances, "m", _OpenAPI3SchemaEmitter_attachExtensions).call(this, program, prop, additionalProps);
if (schema && isRef) {
if (schema && isRef && !(prop.type.kind === "Model" && isArrayModelType(program, prop.type))) {
if (Object.keys(additionalProps).length === 0) {

@@ -212,3 +212,3 @@ return schema;

}
const merged = new ObjectBuilder(schema);
const merged = ensureObjectBuilder(schema);
for (const [key, value] of Object.entries(additionalProps)) {

@@ -709,2 +709,10 @@ merged.set(key, value);

}
function ensureObjectBuilder(type) {
if (type instanceof ObjectBuilder) {
return type;
}
else {
return new ObjectBuilder(type);
}
}
const B = {

@@ -711,0 +719,0 @@ array: (items) => {

7

package.json
{
"name": "@typespec/openapi3",
"version": "0.53.0-dev.0",
"version": "0.53.0-dev.1",
"author": "Microsoft Corporation",
"description": "TypeSpec library for emitting OpenAPI 3.0 from the TypeSpec REST protocol binding",
"homepage": "https://microsoft.github.io/typespec",
"homepage": "https://typespec.io",
"readme": "https://github.com/microsoft/typespec/blob/main/README.md",

@@ -59,3 +59,3 @@ "license": "MIT",

"@typespec/eslint-plugin": "~0.52.0 || >=0.53.0-dev <0.53.0",
"@typespec/tspd": "~0.46.0 || >=0.47.0-dev <0.47.0",
"@typespec/tspd": "~0.46.0",
"eslint": "^8.55.0",

@@ -75,2 +75,3 @@ "vitest": "^1.2.0",

"test": "vitest run",
"test:watch": "vitest -w",
"test:ui": "vitest --ui",

@@ -77,0 +78,0 @@ "test-official": "vitest run --coverage --reporter=junit --reporter=default --no-file-parallelism",

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