Skip to content

Commit

Permalink
Merge pull request #9689 from swagger-api/issue-8483
Browse files Browse the repository at this point in the history
Issue 8483
  • Loading branch information
HugoMario authored Sep 3, 2019
2 parents 47f355a + 607cb83 commit 5a6d687
Show file tree
Hide file tree
Showing 35 changed files with 13 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401

from {{modelPackage}}.base_model_ import Model
{{#imports}}{{import}} # noqa: F401,E501
{{/imports}}
from {{packageName}} import util


Expand Down Expand Up @@ -158,4 +156,4 @@ class {{classname}}(Model):
{{/vars}}

{{/model}}
{{/models}}
{{/models}}
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ import pprint
import re # noqa: F401

import six
{{#imports}}{{#-first}}
{{/-first}}
{{import}} # noqa: F401,E501
{{/imports}}


{{#models}}
{{#model}}
class {{classname}}({{#parent}}{{parent}}{{/parent}}{{^parent}}object{{/parent}}):
class {{classname}}(object):
"""NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.3-SNAPSHOT
2.4.9-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class AnimalFarm(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: F401,E501


class ArrayTest(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class Cat(Animal):
class Cat(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class Dog(Animal):
class Dog(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.outer_enum import OuterEnum # noqa: F401,E501


class EnumTest(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class MixedPropertiesAndAdditionalPropertiesClass(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

import six

from petstore_api.models.outer_boolean import OuterBoolean # noqa: F401,E501
from petstore_api.models.outer_number import OuterNumber # noqa: F401,E501
from petstore_api.models.outer_string import OuterString # noqa: F401,E501


class OuterComposite(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

import six

from petstore_api.models.category import Category # noqa: F401,E501
from petstore_api.models.tag import Tag # noqa: F401,E501


class Pet(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.3-SNAPSHOT
2.4.9-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class AnimalFarm(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: F401,E501


class ArrayTest(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class Cat(Animal):
class Cat(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class Dog(Animal):
class Dog(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.outer_enum import OuterEnum # noqa: F401,E501


class EnumTest(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class MixedPropertiesAndAdditionalPropertiesClass(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

import six

from petstore_api.models.outer_boolean import OuterBoolean # noqa: F401,E501
from petstore_api.models.outer_number import OuterNumber # noqa: F401,E501
from petstore_api.models.outer_string import OuterString # noqa: F401,E501


class OuterComposite(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

import six

from petstore_api.models.category import Category # noqa: F401,E501
from petstore_api.models.tag import Tag # noqa: F401,E501


class Pet(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/python/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.3-SNAPSHOT
2.4.9-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class AnimalFarm(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: F401,E501


class ArrayTest(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
4 changes: 1 addition & 3 deletions samples/client/petstore/python/petstore_api/models/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class Cat(Animal):
class Cat(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Expand Down
4 changes: 1 addition & 3 deletions samples/client/petstore/python/petstore_api/models/dog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class Dog(Animal):
class Dog(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.outer_enum import OuterEnum # noqa: F401,E501


class EnumTest(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

import six

from petstore_api.models.animal import Animal # noqa: F401,E501


class MixedPropertiesAndAdditionalPropertiesClass(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

import six

from petstore_api.models.outer_boolean import OuterBoolean # noqa: F401,E501
from petstore_api.models.outer_number import OuterNumber # noqa: F401,E501
from petstore_api.models.outer_string import OuterString # noqa: F401,E501


class OuterComposite(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
3 changes: 0 additions & 3 deletions samples/client/petstore/python/petstore_api/models/pet.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

import six

from petstore_api.models.category import Category # noqa: F401,E501
from petstore_api.models.tag import Tag # noqa: F401,E501


class Pet(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.3-SNAPSHOT
2.4.9-SNAPSHOT
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from typing import List, Dict # noqa: F401

from swagger_server.models.base_model_ import Model
from swagger_server.models.category import Category # noqa: F401,E501
from swagger_server.models.tag import Tag # noqa: F401,E501
from swagger_server import util


Expand Down
Loading

0 comments on commit 5a6d687

Please sign in to comment.