File tree Expand file tree Collapse file tree
fluent/spec/src/test/java/io/serverlessworkflow/fluent/spec Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments