Primitives¶
-
class
pyswagger.primitives.
Byte
[source]¶ for string type, byte format
-
__init__
()¶ x.__init__(...) initializes x; see help(type(x)) for signature
-
apply_with
(_, v, ctx)[source]¶ constructor
Parameters: v (str) – accept six.string_types, six.binary_type
-
to_json
()[source]¶ according to https://github.com/wordnik/swagger-spec/issues/50, we should exchange ‘byte’ type via base64 encoding.
-
-
class
pyswagger.primitives.
Date
[source]¶ for string type, date format
-
__init__
()¶ x.__init__(...) initializes x; see help(type(x)) for signature
-
-
class
pyswagger.primitives.
Datetime
[source]¶ for string type, datetime format
-
__init__
()¶ x.__init__(...) initializes x; see help(type(x)) for signature
-
-
class
pyswagger.primitives.
Array
[source]¶ for array type, or parameter when allowMultiple=True
-
class
pyswagger.primitives.
Model
[source]¶ for complex type: models
-
__eq__
(other)[source]¶ equality operater, will skip checking when both value are None or no attribute.
Parameters: other (primitives.Model or dict) – another model
-