Ignore:
Timestamp:
May 1, 2019, 3:55:35 PM (8 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
1e7f556
Parents:
be25db1
Message:

Adding waters is working

Location:
src/mapservice/src-gen/openapi_server
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • src/mapservice/src-gen/openapi_server/models/__init__.py

    rbe25db1 r041e464  
    66from openapi_server.models.http_error import HttpError
    77from openapi_server.models.order import Order
     8from openapi_server.models.osm_type import OsmType
    89from openapi_server.models.user import User
    910from openapi_server.models.user_creation import UserCreation
  • src/mapservice/src-gen/openapi_server/models/water.py

    rbe25db1 r041e464  
    99from openapi_server import util
    1010
     11from openapi_server.models.osm_type import OsmType  # noqa: E501
    1112
    1213class Water(Model):
    … …  
    1617    """
    1718
    18     def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None, osm_class=None):  # noqa: E501
     19    def __init__(self, water_id=None, name=None, manager=None, osm_id=None, osm_type=None):  # noqa: E501
    1920        """Water - a model defined in OpenAPI
    2021
    … …  
    2829        :type osm_id: int
    2930        :param osm_type: The osm_type of this Water.  # noqa: E501
    30         :type osm_type: str
    31         :param osm_class: The osm_class of this Water.  # noqa: E501
    32         :type osm_class: str
     31        :type osm_type: OsmType
    3332        """
    3433        self.openapi_types = {
    … …  
    3736            'manager': str,
    3837            'osm_id': int,
    39             'osm_type': str,
    40             'osm_class': str
     38            'osm_type': OsmType
    4139        }
    4240
    … …  
    4644            'manager': 'manager',
    4745            'osm_id': 'osmId',
    48             'osm_type': 'osmType',
    49             'osm_class': 'osm_class'
     46            'osm_type': 'osmType'
    5047        }
    5148
    … …  
    5552        self._osm_id = osm_id
    5653        self._osm_type = osm_type
    57         self._osm_class = osm_class
    5854
    5955    @classmethod
    … …  
    162158
    163159        :return: The osm_type of this Water.
    164         :rtype: str
     160        :rtype: OsmType
    165161        """
    166162        return self._osm_type
    … …  
    172168
    173169        :param osm_type: The osm_type of this Water.
    174         :type osm_type: str
     170        :type osm_type: OsmType
    175171        """
    176         if osm_type is not None and len(osm_type) > 1:
    177             raise ValueError("Invalid value for `osm_type`, length must be less than or equal to `1`")  # noqa: E501
    178         if osm_type is not None and len(osm_type) < 1:
    179             raise ValueError("Invalid value for `osm_type`, length must be greater than or equal to `1`")  # noqa: E501
    180172
    181173        self._osm_type = osm_type
    182 
    183     @property
    184     def osm_class(self):
    185         """Gets the osm_class of this Water.
    186 
    187 
    188         :return: The osm_class of this Water.
    189         :rtype: str
    190         """
    191         return self._osm_class
    192 
    193     @osm_class.setter
    194     def osm_class(self, osm_class):
    195         """Sets the osm_class of this Water.
    196 
    197 
    198         :param osm_class: The osm_class of this Water.
    199         :type osm_class: str
    200         """
    201         if osm_class is not None and len(osm_class) > 1:
    202             raise ValueError("Invalid value for `osm_class`, length must be less than or equal to `1`")  # noqa: E501
    203         if osm_class is not None and len(osm_class) < 1:
    204             raise ValueError("Invalid value for `osm_class`, length must be greater than or equal to `1`")  # noqa: E501
    205 
    206         self._osm_class = osm_class
  • src/mapservice/src-gen/openapi_server/models/water_creation.py

    rbe25db1 r041e464  
    99from openapi_server import util
    1010
     11from openapi_server.models.osm_type import OsmType  # noqa: E501
    1112
    1213class WaterCreation(Model):
    … …  
    2425        :type osm_id: int
    2526        :param osm_type: The osm_type of this WaterCreation.  # noqa: E501
    26         :type osm_type: str
     27        :type osm_type: OsmType
    2728        """
    2829        self.openapi_types = {
    2930            'name': str,
    3031            'osm_id': int,
    31             'osm_type': str
     32            'osm_type': OsmType
    3233        }
    3334
    … …  
    103104
    104105        :return: The osm_type of this WaterCreation.
    105         :rtype: str
     106        :rtype: OsmType
    106107        """
    107108        return self._osm_type
    … …  
    113114
    114115        :param osm_type: The osm_type of this WaterCreation.
    115         :type osm_type: str
     116        :type osm_type: OsmType
    116117        """
    117         if osm_type is not None and len(osm_type) > 1:
    118             raise ValueError("Invalid value for `osm_type`, length must be less than or equal to `1`")  # noqa: E501
    119         if osm_type is not None and len(osm_type) < 1:
    120             raise ValueError("Invalid value for `osm_type`, length must be greater than or equal to `1`")  # noqa: E501
    121118
    122119        self._osm_type = osm_type
  • src/mapservice/src-gen/openapi_server/openapi/openapi.yaml

    rbe25db1 r041e464  
    235235        required: false
    236236        schema:
    237           $ref: '#/components/schemas/item_name'
     237          $ref: '#/components/schemas/itemName'
    238238        style: form
    239239      - example: jane
    … …  
    297297        content:
    298298          application/json:
    299             examples:
    300               Water:
    301                 $ref: '#/components/examples/WaterCreation'
     299            example:
     300              name: Rhein
     301              osmId: 1756854
     302              osmType: Relation
    302303            schema:
    303304              $ref: '#/components/schemas/WaterCreation'
    … …  
    348349        required: true
    349350        schema:
    350           $ref: '#/components/schemas/item_id'
     351          $ref: '#/components/schemas/itemId'
    351352        style: simple
    352353      responses:
    … …  
    398399        osmId: 1756854
    399400        osmType: R
    400         link: http://gnuboat.engsas.com/mapservice/v1/waters/1
    401401    WaterCreation:
    402402      summary: A water example object for creation of a water
    … …  
    404404        name: Mississippi
    405405        osmId: 1756854
    406         osmType: R
     406        osmType: Relation
    407407    waters:
    408408      summary: A sample list with waters
    … …  
    411411        name: Mississippi
    412412        osmId: 1756854
    413         osmType: R
    414         link: http://gnuboat.engsas.com/mapservice/v1/waters/1
     413        osmType: Relation
    415414      - waterId: 2
    416415        name: Bodensee
    417         link: http://gnuboat.engsas.com/mapservice/v1/waters/2
    418416    HttpError:
    419417      value:
    … …  
    508506      title: Activation code for a User
    509507      type: string
    510     item_id:
     508    itemId:
    511509      format: int32
    512510      title: Item ID
    513511      type: integer
    514     item_name:
     512    itemName:
    515513      title: Item Name
    516514      type: string
    517515    osmType:
    518       maxLength: 1
    519       minLength: 1
     516      enum:
     517      - Node
     518      - Way
     519      - Relation
     520      title: OSM type of item (N|W|R)
    520521      type: string
    521522    User:
    … …  
    580581        osmId: 6
    581582        name: name
    582         osmType: osmType
    583         osm_class: osm_class
    584583        waterId: 0
    585584      properties:
    … …  
    599598          type: integer
    600599        osmType:
    601           maxLength: 1
    602           minLength: 1
    603           type: string
    604         osm_class:
    605           maxLength: 1
    606           minLength: 1
    607           type: string
     600          $ref: '#/components/schemas/osmType'
    608601      required:
    609602      - name
    … …  
    615608        osmId: 0
    616609        name: name
    617         osmType: osmType
    618610      properties:
    619611        name:
    … …  
    625617          type: integer
    626618        osmType:
    627           maxLength: 1
    628           minLength: 1
    629           type: string
     619          $ref: '#/components/schemas/osmType'
    630620      required:
    631621      - name
Note: See TracChangeset for help on using the changeset viewer.