Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 5bf44bf

Browse files
committed
Adds 303 unit test sample back in
1 parent f448d1f commit 5bf44bf

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
generatorName: python
2+
outputDir: samples/openapi3/client/3_0_3_unit_test/python
3+
inputSpec: modules/openapi-json-schema-generator/src/test/resources/3_0/unit_test_spec/3_0_3_unit_test_spec.yaml
4+
templateDir: modules/openapi-json-schema-generator/src/main/resources/python
5+
additionalProperties:
6+
packageName: unit_test_api

bin/configs/unmaintained/python_3_0_3_unit_test.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.2.0
1+
1.0.0-SNAPSHOT

samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,6 +1883,7 @@ def __get_oneof_class(
18831883
"Invalid inputs given to generate an instance of {}. Multiple "
18841884
"oneOf schemas {} matched the inputs, but a max of one is allowed.".format(cls, oneof_classes)
18851885
)
1886+
# exactly one class matches
18861887
return path_to_schemas
18871888

18881889
@classmethod

0 commit comments

Comments
 (0)