mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 18:48:00 -05:00
fix(appsync): require definition and format when creating types (#8157)
This commit is contained in:
1 parent
d05710e1d9
commit
44eb096ed5
5 files changed
+177
-12
No files matched your search
@@ -552,6 +552,7 @@ class AppSyncTest {
|
||||
CreateTypeResponse resp = client.createType(CreateTypeRequest.builder()
|
||||
.apiId(apiId)
|
||||
.definition("type Item { id: ID!, name: String }")
|
||||
.format(TypeDefinitionFormat.SDL)
|
||||
.build());
|
||||
|
||||
assertThat(resp.type()).isNotNull();
|
||||
@@ -601,6 +602,7 @@ class AppSyncTest {
|
||||
client.createType(CreateTypeRequest.builder()
|
||||
.apiId(apiId)
|
||||
.definition("type TempType { id: ID }")
|
||||
.format(TypeDefinitionFormat.SDL)
|
||||
.build());
|
||||
|
||||
DeleteTypeResponse resp = client.deleteType(DeleteTypeRequest.builder()
|
||||
|
||||
Reference in new issue
Block a user