Skip to content

Commit bb9e445

Browse files
chore: generate
1 parent 528fb1d commit bb9e445

1 file changed

Lines changed: 18 additions & 28 deletions

File tree

packages/opencode/test/provider/transform.test.ts

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -907,14 +907,7 @@ describe("ProviderTransform.schema - moonshot $ref siblings", () => {
907907
aspects: {
908908
description: "Optional. Specific aspects to focus on. If empty, all aspects may be varied.",
909909
items: {
910-
enum: [
911-
"VARIANT_ASPECT_UNSPECIFIED",
912-
"LAYOUT",
913-
"COLOR_SCHEME",
914-
"IMAGES",
915-
"TEXT_FONT",
916-
"TEXT_CONTENT",
917-
],
910+
enum: ["VARIANT_ASPECT_UNSPECIFIED", "LAYOUT", "COLOR_SCHEME", "IMAGES", "TEXT_FONT", "TEXT_CONTENT"],
918911
type: "string",
919912
},
920913
type: "array",
@@ -977,31 +970,28 @@ describe("ProviderTransform.schema - moonshot $ref siblings", () => {
977970
})
978971

979972
test("converts tuple-style array items to a single item schema", () => {
980-
const result = ProviderTransform.schema(
981-
moonshotModel,
982-
{
983-
type: "object",
984-
properties: {
985-
codeSpec: {
986-
type: "object",
987-
properties: {
988-
accessibility: {
989-
type: "object",
990-
properties: {
991-
renderedSize: {
992-
description: "Rendered size [width, height] in px",
993-
type: "array",
994-
items: [{ type: "number" }, { type: "number" }],
995-
minItems: 2,
996-
maxItems: 2,
997-
},
973+
const result = ProviderTransform.schema(moonshotModel, {
974+
type: "object",
975+
properties: {
976+
codeSpec: {
977+
type: "object",
978+
properties: {
979+
accessibility: {
980+
type: "object",
981+
properties: {
982+
renderedSize: {
983+
description: "Rendered size [width, height] in px",
984+
type: "array",
985+
items: [{ type: "number" }, { type: "number" }],
986+
minItems: 2,
987+
maxItems: 2,
998988
},
999989
},
1000990
},
1001991
},
1002992
},
1003-
} as any,
1004-
) as any
993+
},
994+
} as any) as any
1005995

1006996
expect(result.properties.codeSpec.properties.accessibility.properties.renderedSize.items).toEqual({
1007997
type: "number",

0 commit comments

Comments
 (0)