Better inline model resolver to handle inline schema in array item (#12104)

* better support of inline schema in array item

* update tests

* update samples

* regenerate samples

* fix allof naming, remove files

* add files

* update samples

* update readme

* fix tests

* update samples

* update samples

* add new files

* update test spec

* add back tests

* remove unused files

* comment out python test

* update js test using own spec

* remove files

* remove unused files

* remove files

* remove unused files

* better handling of allOf with a single type

* comment out go test

* remove test_all_of_with_single_ref_single_ref_type.py

* fix inline resolver, uncomment go test
This commit is contained in:
William Cheng
2022-04-20 10:28:15 +08:00
committed by GitHub
parent 12454de3ac
commit 8330e16d66
200 changed files with 7495 additions and 975 deletions

View File

@@ -0,0 +1,35 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import unittest
import petstore_api
from petstore_api.model.object_with_inline_composition_property_some_prop import ObjectWithInlineCompositionPropertySomeProp
class TestObjectWithInlineCompositionPropertySomeProp(unittest.TestCase):
"""ObjectWithInlineCompositionPropertySomeProp unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def test_ObjectWithInlineCompositionPropertySomeProp(self):
"""Test ObjectWithInlineCompositionPropertySomeProp"""
# FIXME: construct object with mandatory attributes with example values
# model = ObjectWithInlineCompositionPropertySomeProp() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()