@accelbyte/codegen 1.0.0-beta.6 → 1.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -843,7 +843,25 @@ ${exportedTypeString}
843
843
  typeString: refType
844
844
  };
845
845
  } else if (items) {
846
- model2 = this.parseEnumItems(items);
846
+ if (items.type === "array") {
847
+ const ref3 = items.items?.$ref;
848
+ if (ref3) {
849
+ const refType = ParserUtils.parseRefType(ref3);
850
+ this.importClasses.add(refType);
851
+ model2 = {
852
+ schemaString: refType,
853
+ typeString: refType
854
+ };
855
+ } else if (items.items) {
856
+ model2 = this.parseEnumItems(items.items);
857
+ }
858
+ return {
859
+ schemaString: `${schemaAttribute} z.array(z.array(${model2.schemaString}))${schemaRequired}`,
860
+ typeString: `${typeAttribute} ${model2.typeString}[]${typeNullishability}`
861
+ };
862
+ } else {
863
+ model2 = this.parseEnumItems(items);
864
+ }
847
865
  } else {
848
866
  return {
849
867
  schemaString: `${schemaAttribute} z.array(z.any())${schemaRequired}`,