Skip to content

Commit 88051ea

Browse files
test: Test oneOf with simples types
Signed-off-by: Edgar Ramírez Mondragón <[email protected]>
1 parent 062ce73 commit 88051ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/core/test_flattening.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ def test_flatten_combined_schemas():
252252
},
253253
],
254254
},
255+
"id": {
256+
"oneOf": [
257+
{"type": "integer"},
258+
{"type": "string", "format": "uuid"},
259+
],
260+
},
255261
},
256262
}
257263
flattened = flatten_schema(schema, max_level=1)

0 commit comments

Comments
 (0)