Skip to content

Commit

Permalink
Upate existing TCK for Schema.nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Azquelt committed Apr 23, 2024
1 parent 7314481 commit 1e1442a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -42,6 +42,7 @@
import java.util.ArrayList;
import java.util.List;

import org.hamcrest.Matchers;
import org.hamcrest.collection.IsMapWithSize;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.shrinkwrap.api.ShrinkWrap;
Expand Down Expand Up @@ -716,7 +717,7 @@ public void testSchema(String type) {

// Array properties
String createSchema = "paths.'/user/createWithArray'.post.requestBody.content.'application/json'.schema";
vr.body(createSchema + ".nullable", equalTo(true));
vr.body(createSchema + ".type", containsInAnyOrder("array", "null"));
vr.body(createSchema + ".writeOnly", equalTo(true));
vr.body(createSchema + ".maxItems", equalTo(20));
vr.body(createSchema + ".minItems", equalTo(2));
Expand Down

0 comments on commit 1e1442a

Please sign in to comment.