| ... | @@ -127,6 +127,16 @@ pub const LibStub = struct { | ... | @@ -127,6 +127,16 @@ pub const LibStub = struct { |
| 127 | break :blk out; | 127 | break :blk out; |
| 128 | } | 128 | } |
| 129 | | 129 | |
| | 130 | err: { |
| | 131 | log.debug("trying to parse as []TbdV3", .{}); |
| | 132 | const inner = lib_stub.yaml.parse([]TbdV3) catch break :err; |
| | 133 | var out = try lib_stub.yaml.arena.allocator.alloc(Tbd, inner.len); |
| | 134 | for (inner) |doc, i| { |
| | 135 | out[i] = .{ .v3 = doc }; |
| | 136 | } |
| | 137 | break :blk out; |
| | 138 | } |
| | 139 | |
| 130 | err: { | 140 | err: { |
| 131 | log.debug("trying to parse as TbdV3", .{}); | 141 | log.debug("trying to parse as TbdV3", .{}); |
| 132 | const inner = lib_stub.yaml.parse(TbdV3) catch break :err; | 142 | const inner = lib_stub.yaml.parse(TbdV3) catch break :err; |