| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
| Data Structures | |
| class | AllowableList | 
| class | AllowableRange | 
| class | Api | 
| class | ApiDeclaration | 
| class | ErrorResponse | 
| class | Model | 
| class | Operation | 
| class | Parameter | 
| class | ParsingContext | 
| class | Property | 
| class | ResourceApi | 
| class | ResourceListing | 
| class | Stringify | 
| class | SwaggerError | 
| class | SwaggerPostProcessor | 
| class | SwaggerType | 
| Functions | |
| compare_versions (lhs, rhs) | |
| get_list_parameter_type (type_string) | |
| load_allowable_values (json, context) | |
| validate_required_fields (json, required_fields, context) | |
| Variables | |
| list | SWAGGER_PRIMITIVES | 
| list | SWAGGER_VERSIONS = ["1.1", "1.2"] | 
Swagger data model objects. These objects should map directly to the Swagger api-docs, without a lot of additional fields. In the process of translation, it should also validate the model for consistency against the Swagger spec (i.e., fail if fields are missing, or have incorrect values). See https://github.com/wordnik/swagger-core/wiki/API-Declaration for the spec.
| compare_versions | ( | lhs, | |
| rhs | |||
| ) | 
Performs a lexicographical comparison between two version numbers. This properly handles simple major.minor.whatever.sure.why.not version numbers, but fails miserably if there's any letters in there. For reference: 1.0 == 1.0 1.0 < 1.0.1 1.2 < 1.10 @param lhs Left hand side of the comparison @param rhs Right hand side of the comparison @return < 0 if lhs < rhs @return == 0 if lhs == rhs @return > 0 if lhs > rhs
Definition at line 60 of file swagger_model.py.
Referenced by ParsingContext.version_less_than().
| get_list_parameter_type | ( | type_string | ) | 
Returns the type parameter if the given type_string is List[]. @param type_string: Type string to parse @returns Type parameter of the list, or None if not a List.
Definition at line 461 of file swagger_model.py.
Referenced by SwaggerType.load().
| load_allowable_values | ( | json, | |
| context | |||
| ) | 
Parse a JSON allowableValues object. This returns None, AllowableList or AllowableRange, depending on the valueType in the JSON. If the valueType is not recognized, a SwaggerError is raised.
Definition at line 240 of file swagger_model.py.
| validate_required_fields | ( | json, | |
| required_fields, | |||
| context | |||
| ) | 
Checks a JSON object for a set of required fields. If any required field is missing, a SwaggerError is raised. @param json: JSON object to check. @param required_fields: List of required fields. @param context: Current context in the API.
Definition at line 768 of file swagger_model.py.
| list SWAGGER_PRIMITIVES | 
Definition at line 40 of file swagger_model.py.
| list SWAGGER_VERSIONS = ["1.1", "1.2"] | 
Definition at line 38 of file swagger_model.py.