@@ -90,8 +90,7 @@ Feature: JSON Schema Validation Compatibility — Exhaustive (Confluent v8.1.1 C
9090 """
9191 Then the compatibility check should be compatible
9292
93- @pending-impl
94- Scenario : Compatible — record with optional field reader, empty record writer
93+ Scenario : Incompatible — adding property to open content model (Confluent PROPERTY_ADDED_TO_OPEN_CONTENT_MODEL)
9594 Given the global compatibility level is "NONE"
9695 And subject "jsv-compat-06" has compatibility level "BACKWARD"
9796 And subject "jsv-compat-06" has "JSON" schema:
@@ -102,10 +101,9 @@ Feature: JSON Schema Validation Compatibility — Exhaustive (Confluent v8.1.1 C
102101 """
103102 {"type":"object","properties":{"a":{"type":"integer"}}}
104103 """
105- Then the compatibility check should be compatible
104+ Then the compatibility check should be incompatible
106105
107- @pending-impl
108- Scenario : Compatible — record adding optional field with default
106+ Scenario : Incompatible — adding optional field with default to open content model
109107 Given the global compatibility level is "NONE"
110108 And subject "jsv-compat-07" has compatibility level "BACKWARD"
111109 And subject "jsv-compat-07" has "JSON" schema:
@@ -116,7 +114,7 @@ Feature: JSON Schema Validation Compatibility — Exhaustive (Confluent v8.1.1 C
116114 """
117115 {"type":"object","properties":{"a":{"type":"integer"},"b":{"type":"integer","default":0}},"required":["a"]}
118116 """
119- Then the compatibility check should be compatible
117+ Then the compatibility check should be incompatible
120118
121119 Scenario : Compatible — open content model with extra properties
122120 Given the global compatibility level is "NONE"
@@ -131,8 +129,7 @@ Feature: JSON Schema Validation Compatibility — Exhaustive (Confluent v8.1.1 C
131129 """
132130 Then the compatibility check should be compatible
133131
134- @pending-impl
135- Scenario : Compatible — record removing non-required field
132+ Scenario : Incompatible — adding non-required property to open content model
136133 Given the global compatibility level is "NONE"
137134 And subject "jsv-compat-09" has compatibility level "BACKWARD"
138135 And subject "jsv-compat-09" has "JSON" schema:
@@ -143,7 +140,7 @@ Feature: JSON Schema Validation Compatibility — Exhaustive (Confluent v8.1.1 C
143140 """
144141 {"type":"object","properties":{"a":{"type":"integer"},"b":{"type":"integer"}}}
145142 """
146- Then the compatibility check should be compatible
143+ Then the compatibility check should be incompatible
147144
148145 # ==========================================================================
149146 # INCOMPATIBLE READER/WRITER PAIRS (15 cases from Confluent)
@@ -335,8 +332,7 @@ Feature: JSON Schema Validation Compatibility — Exhaustive (Confluent v8.1.1 C
335332 # TRANSITIVE COMPATIBILITY CHAINS
336333 # ==========================================================================
337334
338- @pending-impl
339- Scenario : JSON Schema backward transitive — compatible chain
335+ Scenario : JSON Schema backward transitive — open content model rejects new properties
340336 Given the global compatibility level is "NONE"
341337 And subject "jsv-trans-ok" has "JSON" schema:
342338 """
@@ -351,10 +347,9 @@ Feature: JSON Schema Validation Compatibility — Exhaustive (Confluent v8.1.1 C
351347 """
352348 {"type":"object","properties":{"a":{"type":"integer"},"b":{"type":"string","default":""},"c":{"type":"number","default":0}},"required":["a"]}
353349 """
354- Then the response status should be 200
350+ Then the response status should be 409
355351
356- @pending-impl
357- Scenario : JSON Schema backward transitive — incompatible with first version
352+ Scenario : JSON Schema backward transitive — closed content model allows new properties
358353 Given the global compatibility level is "NONE"
359354 And subject "jsv-trans-fail" has "JSON" schema:
360355 """
@@ -369,7 +364,7 @@ Feature: JSON Schema Validation Compatibility — Exhaustive (Confluent v8.1.1 C
369364 """
370365 {"type":"object","properties":{"a":{"type":"integer"},"b":{"type":"string"},"c":{"type":"number"}},"required":["a"],"additionalProperties":false}
371366 """
372- Then the response status should be 409
367+ Then the response status should be 200
373368
374369 # ==========================================================================
375370 # UNION / ONEOF COMPATIBILITY
0 commit comments