( schema: JSONSchema7, parentTypeName: string, ctx: RustCodegenCtx, )
| 479 | } |
| 480 | |
| 481 | function rustArrayType( |
| 482 | schema: JSONSchema7, |
| 483 | parentTypeName: string, |
| 484 | ctx: RustCodegenCtx, |
| 485 | ): string { |
| 486 | const items = schema.items as JSONSchema7 | undefined; |
| 487 | if (!items) return "Vec<serde_json::Value>"; |
| 488 | |
| 489 | return `Vec<${resolveRustType(items, parentTypeName, "item", true, ctx)}>`; |
| 490 | } |
| 491 | |
| 492 | function rustMapValueType( |
| 493 | schema: JSONSchema7, |
no test coverage detected
searching dependent graphs…