Akhil Nair a6bcef5b16
[PYTHON] Setting default value for Required variables (#10809)
* [req_vars_changes]

* Added new schema to generate samples to test the issue mentioned in the PR.

* Changed the variable name from setRequiredVars to initRequiredVars

* Added initRequiredVars as a generator additional property

* Regenerating the samples after rebasing the code with master branch

* Changed the description of additional property
2022-03-30 08:52:00 -07:00

40 lines
955 B
Python

"""
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 sys
import unittest
import petstore_api
from petstore_api.model.polygon_all_of import PolygonAllOf
from petstore_api.model.shape import Shape
globals()['PolygonAllOf'] = PolygonAllOf
globals()['Shape'] = Shape
from petstore_api.model.polygon import Polygon
class TestPolygon(unittest.TestCase):
"""Polygon unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testPolygon(self):
"""Test Polygon"""
# FIXME: construct object with mandatory attributes with example values
# model = Polygon() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()