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

@seamapi/nextlove-sdk-generator

Package Overview
Dependencies
Maintainers
0
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seamapi/nextlove-sdk-generator - npm Package Compare versions

Comparing version 1.15.2 to 1.15.3

3

lib/generate-csharp-sdk/generate-csharp-sdk.js

@@ -39,3 +39,4 @@ import * as url from "url";

"oneOf" in response_schema ||
Object.keys(response_schema.properties).filter((k) => k.toLowerCase() !== "ok").length > 0) {
(Object.keys(response_schema.properties).filter((k) => k.toLowerCase() !== "ok").length > 0 &&
route.post["x-response-key"] !== null)) {
console.log(`No response object/array ref for "${route.path}", skipping`);

@@ -42,0 +43,0 @@ continue;

@@ -7,3 +7,3 @@ import { flattenObjSchema } from "./flatten-obj-schema.js";

"required" in response_schema &&
response_schema.required?.includes(route.post["x-fern-sdk-return-value"]));
response_schema.required?.includes(route.post["x-response-key"] ?? ""));
if (!response_schema) {

@@ -23,3 +23,3 @@ return { nullable };

const parameter_schema = processParameterSchema(route.post.requestBody.content["application/json"].schema);
const res_return_schema = response_schema.properties[route.post["x-fern-sdk-return-value"]];
const res_return_schema = response_schema.properties[route.post["x-response-key"] ?? ""];
const response_obj_ref = res_return_schema?.$ref;

@@ -26,0 +26,0 @@ const response_arr_ref = res_return_schema?.items?.$ref;

@@ -91,2 +91,3 @@ export type OpenAPISchema = {

"x-fern-sdk-return-value": string;
"x-response-key": string | null;
responses: {

@@ -93,0 +94,0 @@ 200: RequestResponseDef;

{
"name": "@seamapi/nextlove-sdk-generator",
"version": "1.15.2",
"version": "1.15.3",
"description": "Utilities for building NextLove SDK Generators",

@@ -5,0 +5,0 @@ "type": "module",

@@ -76,5 +76,6 @@ import * as url from "url"

"oneOf" in response_schema ||
Object.keys(response_schema.properties).filter(
(Object.keys(response_schema.properties).filter(
(k) => k.toLowerCase() !== "ok"
).length > 0
).length > 0 &&
route.post["x-response-key"] !== null)
) {

@@ -81,0 +82,0 @@ console.log(

@@ -12,3 +12,3 @@ import type { ObjSchema, Route } from "lib/types.js"

"required" in response_schema &&
response_schema.required?.includes(route.post["x-fern-sdk-return-value"])
response_schema.required?.includes(route.post["x-response-key"] ?? "")
)

@@ -37,3 +37,3 @@

const res_return_schema = (response_schema as any).properties[
route.post["x-fern-sdk-return-value"]
route.post["x-response-key"] ?? ""
]

@@ -40,0 +40,0 @@

@@ -98,2 +98,3 @@ export type OpenAPISchema = {

"x-fern-sdk-return-value": string
"x-response-key": string | null
responses: { 200: RequestResponseDef }

@@ -100,0 +101,0 @@ requestBody: RequestResponseDef

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