|
@@ -33,7 +33,7 @@ def bottle_generate_operations(
|
33
|
33
|
schema_class = type(description.output_body.wrapper.processor.schema)
|
34
|
34
|
method_operations.setdefault('responses', {})\
|
35
|
35
|
[int(description.output_body.wrapper.default_http_code)] = {
|
36
|
|
- 'description': int(description.output_body.wrapper.default_http_code), # nopep8
|
|
36
|
+ 'description': str(int(description.output_body.wrapper.default_http_code)), # nopep8
|
37
|
37
|
'schema': {
|
38
|
38
|
'$ref': '#/definitions/{}'.format(schema_class.__name__)
|
39
|
39
|
}
|
|
@@ -45,7 +45,7 @@ def bottle_generate_operations(
|
45
|
45
|
)
|
46
|
46
|
method_operations.setdefault('responses', {})\
|
47
|
47
|
[int(description.output_file.wrapper.default_http_code)] = {
|
48
|
|
- 'description': int(description.output_file.wrapper.default_http_code), # nopep8
|
|
48
|
+ 'description': str(int(description.output_file.wrapper.default_http_code)), # nopep8
|
49
|
49
|
}
|
50
|
50
|
|
51
|
51
|
if description.errors:
|
|
@@ -53,7 +53,7 @@ def bottle_generate_operations(
|
53
|
53
|
schema_class = type(error.wrapper.error_builder)
|
54
|
54
|
method_operations.setdefault('responses', {})\
|
55
|
55
|
[int(error.wrapper.http_code)] = {
|
56
|
|
- 'description': int(error.wrapper.http_code),
|
|
56
|
+ 'description': str(int(error.wrapper.http_code)),
|
57
|
57
|
'schema': {
|
58
|
58
|
'$ref': '#/definitions/{}'.format(schema_class.__name__) # nopep8
|
59
|
59
|
}
|