mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
- Add generic Paginated<TModel> for pagination responses. - Added pagination helper to ApiController. - Implemented pagination for all previously IEnumerable<T> response endpoints. - Added IApiTransformable<TApiModel> for host models finally. - Added PaginationSettings to client List endpoints. - Use two deprecated ErrorCodes for page parameter validation. - Re-enabled to OpenAPI root array response lint. - Add some integration tests with users.
91 lines
2.5 KiB
JSON
91 lines
2.5 KiB
JSON
{
|
|
"shared": {
|
|
"operations": {
|
|
"no_operation_id": "error",
|
|
"operation_id_case_convention": "off",
|
|
"no_summary": "error",
|
|
"no_array_responses": "error",
|
|
"parameter_order": "error",
|
|
"undefined_tag": "off",
|
|
"unused_tag": "error",
|
|
"operation_id_naming_convention": "off"
|
|
},
|
|
"pagination": {
|
|
"pagination_style": "error"
|
|
},
|
|
"parameters": {
|
|
"no_parameter_description": "error",
|
|
"param_name_case_convention": "off",
|
|
"invalid_type_format_pair": "off",
|
|
"content_type_parameter": "error",
|
|
"accept_type_parameter": "error",
|
|
"authorization_parameter": "error",
|
|
"required_param_has_default": "error"
|
|
},
|
|
"paths": {
|
|
"missing_path_parameter": "error",
|
|
"duplicate_path_parameter": "error",
|
|
"snake_case_only": "off",
|
|
"paths_case_convention": "off"
|
|
},
|
|
"responses": {
|
|
"inline_response_schema": "off"
|
|
},
|
|
"security_definitions": {
|
|
"unused_security_schemes": "error",
|
|
"unused_security_scopes": "error"
|
|
},
|
|
"security": {
|
|
"invalid_non_empty_security_array": "error"
|
|
},
|
|
"schemas": {
|
|
"invalid_type_format_pair": "off",
|
|
"snake_case_only": "off",
|
|
"no_schema_description": "off",
|
|
"no_property_description": "off",
|
|
"description_mentions_json": "error",
|
|
"array_of_arrays": "error",
|
|
"inconsistent_property_type": "error",
|
|
"property_case_convention": "off",
|
|
"property_case_collision": "error",
|
|
"enum_case_convention": "off",
|
|
"undefined_required_properties": "error"
|
|
},
|
|
"walker": {
|
|
"no_empty_descriptions": "error",
|
|
"has_circular_references": "error",
|
|
"$ref_siblings": "error",
|
|
"duplicate_sibling_description": "error",
|
|
"incorrect_ref_pattern": "error"
|
|
}
|
|
},
|
|
"swagger2": {
|
|
"operations": {
|
|
"no_consumes_for_put_or_post": "error",
|
|
"get_op_has_consumes": "error",
|
|
"no_produces": "error"
|
|
}
|
|
},
|
|
"oas3": {
|
|
"operations": {
|
|
"no_request_body_content": "error",
|
|
"no_request_body_name": "off"
|
|
},
|
|
"parameters": {
|
|
"no_in_property": "error",
|
|
"invalid_in_property": "error",
|
|
"missing_schema_or_content": "error",
|
|
"has_schema_and_content": "error"
|
|
},
|
|
"responses": {
|
|
"no_response_codes": "error",
|
|
"no_success_response_codes": "error",
|
|
"no_response_body": "error",
|
|
"ibm_status_code_guidelines": "off"
|
|
},
|
|
"schemas": {
|
|
"json_or_param_binary_string": "error"
|
|
}
|
|
}
|
|
}
|