Skip to content

Commit 9453c48

Browse files
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 34a4fdf commit 9453c48

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec/InputBuilderTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ void testSchemaObjectThenString() {
127127

128128
assertNotNull(input.getSchema(), "Schema should be set");
129129
assertNotNull(input.getSchema().getSchemaExternal(), "Schema external should be set");
130+
assertNull(
131+
input.getSchema().getSchemaInline(),
132+
"Schema inline should be cleared when setting external schema");
130133
}
131134

132135
@Test
@@ -138,7 +141,9 @@ void testSchemaStringThenObject() {
138141

139142
assertNotNull(input.getSchema(), "Schema should be set");
140143
assertNotNull(input.getSchema().getSchemaInline(), "Schema inline should be set");
141-
// Note: SchemaUnion may keep both, but inline takes precedence in serialization
144+
assertNull(
145+
input.getSchema().getSchemaExternal(),
146+
"Schema external should be cleared when setting inline schema");
142147
}
143148

144149
@Test

0 commit comments

Comments
 (0)