@@ -36,7 +36,7 @@ public class RestrictionsTest {
36
36
put (CONFIG_FLAG .DEFAULT_DESCRIPTIONS , true );
37
37
put (CONFIG_FLAG .DEFAULT_PROPERTIES , true );
38
38
put (CONFIG_FLAG .FOLLOW_REFERENCES , true );
39
- put (CONFIG_FLAG .REQUIRED_PROPERTIES_FROM_CARDINALITY , true );
39
+ put (CONFIG_FLAG .REQUIRED_PROPERTIES_FROM_CARDINALITY , false );
40
40
}};
41
41
42
42
/**
@@ -245,10 +245,10 @@ public void testObjectExactCardinalityWithArraysGenerated() throws OWLOntologyCr
245
245
246
246
/**
247
247
* This test attempts to get the OAS representation of the exact cardinality of an ObjectProperty,
248
- * when properties may or may not be arrays, depending on cardinality.
248
+ * when properties may or may not be arrays, depending on cardinality. Plus, list of required properties are set to be generated for schemas.
249
249
*/
250
250
@ Test
251
- public void testObjectExactCardinalityWithoutArraysGenerated () throws OWLOntologyCreationException , Exception {
251
+ public void testObjectExactCardinalityWithRequiredPropertiesAndWithoutArraysGenerated () throws OWLOntologyCreationException , Exception {
252
252
try {
253
253
this .initializeLogger ();
254
254
YamlConfig config_data = get_yaml_data ("examples/restrictions/config.yaml" );
@@ -257,6 +257,7 @@ public void testObjectExactCardinalityWithoutArraysGenerated() throws OWLOntolog
257
257
String desc = ObaUtils .getDescription (cls , mapper .ontologies .get (0 ), true );
258
258
259
259
this .configFlags .put (CONFIG_FLAG .ALWAYS_GENERATE_ARRAYS , false );
260
+ this .configFlags .put (CONFIG_FLAG .REQUIRED_PROPERTIES_FROM_CARDINALITY , true );
260
261
MapperSchema mapperSchema = new MapperSchema (mapper .ontologies , cls , desc , mapper .schemaNames , mapper .ontologies .get (0 ), this .configFlags );
261
262
Schema schema = mapperSchema .getSchema ();
262
263
0 commit comments