@seamapi/nextlove-sdk-generator
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -0,1 +1,2 @@ | ||
import { deepFlattenOneOfAndAllOfSchema } from "../../lib/generate-php-sdk/utils/deep-flatten-one-of-and-all-of-schema.js"; | ||
// TODO literals? | ||
@@ -23,3 +24,3 @@ export const mapPythonType = (property_schema) => { | ||
? mapPythonType({ type: property_schema.items.type }) | ||
: "Any"; | ||
: mapPythonType(deepFlattenOneOfAndAllOfSchema(property_schema.items)); | ||
return `List[${array_item_type}]`; | ||
@@ -26,0 +27,0 @@ } // TODO, make more specific |
{ | ||
"name": "@seamapi/nextlove-sdk-generator", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"description": "Utilities for building NextLove SDK Generators", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -0,1 +1,2 @@ | ||
import { deepFlattenOneOfAndAllOfSchema } from "lib/generate-php-sdk/utils/deep-flatten-one-of-and-all-of-schema.js" | ||
import type { PrimitiveSchema, PropertySchema } from "lib/types.js" | ||
@@ -27,3 +28,3 @@ | ||
? mapPythonType({ type: property_schema.items.type } as PrimitiveSchema) | ||
: "Any" | ||
: mapPythonType(deepFlattenOneOfAndAllOfSchema(property_schema.items)) | ||
@@ -30,0 +31,0 @@ return `List[${array_item_type}]` |
Sorry, the diff of this file is not supported yet
704979
9488