We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b732fa commit 21e18f3Copy full SHA for 21e18f3
tests/test_server_spec_utilities.py
@@ -193,3 +193,23 @@ def test_recursive_expand_refs_schema_in(spec):
193
194
195
### TODO: Test expand_refs
196
+
197
198
+def test_expand_refs_no_refs(spec):
199
+ input_dict = {
200
+ "type": "object",
201
+ "properties": {
202
+ "name": {"type": "string"},
203
+ "email": {"type": "string", "format": "email"},
204
+ },
205
+ }
206
207
+ assert utilities.expand_refs(input_dict, spec) == input_dict
208
209
210
+def test_expand_refs_missing_schema(spec):
211
212
+ "$ref": "MissingRef",
213
214
215
0 commit comments