Skip to content

Commit 082a559

Browse files
committed
embed test
1 parent 6cf507e commit 082a559

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

pkg/parameters/openapi/cue_gen_openapi_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ var _ = Describe("GenerateOpenAPISchema", func() {
5353
},
5454
Entry("test_import_type", "test_import_type.cue", "Exemplar", "test_import_type.json", false),
5555
Entry("normal_test with mysql", "mysql_openapi.cue", "MysqlParameter", "mysql_openapi.json", false),
56-
FEntry("normal_test with mysql2", "mysql_openapi_v2.cue", "MysqlSchema", "mysql_openapi_v2.json", false),
56+
Entry("normal_test with mysql2", "mysql_openapi_v2.cue", "MysqlSchema", "mysql_openapi_v2.json", false),
5757
Entry("normal_with_not_empty", "mysql_openapi.cue", "", "mysql_openapi.json", false),
5858
Entry("pg14_openapi", "pg14.cue", "PGPameter", "pg14_openapi.json", false),
5959
Entry("multiple_schema_arch_a", "multiple_schema.cue", "archA", "multiple_schema_arch_a.json", false),
6060
Entry("multiple_schema_combined", "multiple_schema.cue", "combined", "multiple_schema_combined.json", false),
61+
Entry("multiple_schema_embedded", "multiple_schema.cue", "embedded", "multiple_schema_combined.json", false),
6162
Entry("failed_test", "mysql.cue", "NotType", "mysql_openapi_failed_not_exist", true),
6263
)
6364
})

test/testdata/cue_testdata/multiple_schema.cue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,8 @@
2828
}
2929

3030
#combined: #archA & #archB
31+
32+
#embedded: {
33+
#archA
34+
#archB
35+
}

0 commit comments

Comments
 (0)