From f3174a6a04428b1c89bb2c3683ef4a21303e6490 Mon Sep 17 00:00:00 2001 From: Ruslan Guskov Date: Wed, 19 Nov 2025 14:12:33 +0300 Subject: [PATCH] refactor: remove type key from trace --- src/Services/SwaggerService.php | 2 ++ tests/fixtures/SwaggerServiceTest/empty_prod_documentation.html | 1 - .../invalid_format_array_parameter_no_items.html | 1 - .../invalid_format_array_response_body_no_items.html | 1 - .../invalid_format_array_response_header_no_items.html | 1 - .../SwaggerServiceTest/invalid_format_body_and_form_params.html | 1 - .../invalid_format_duplicate_header_params.html | 1 - .../invalid_format_duplicate_operation_id.html | 1 - .../invalid_format_duplicate_path_params.html | 1 - .../invalid_format_duplicate_path_placeholders.html | 1 - .../SwaggerServiceTest/invalid_format_duplicate_tag.html | 1 - .../invalid_format_file_invalid_consumes.html | 1 - .../SwaggerServiceTest/invalid_format_file_no_consumes.html | 1 - ...nvalid_format_incorrect_documentation_structure_request.html | 1 - .../SwaggerServiceTest/invalid_format_invalid_schema_type.html | 1 - .../invalid_format_invalid_value_parameter_in.html | 1 - .../SwaggerServiceTest/invalid_format_invalid_value_path.html | 1 - .../invalid_format_invalid_value_status_code.html | 1 - .../SwaggerServiceTest/invalid_format_missing_external_ref.html | 1 - .../invalid_format_missing_field_definition_type.html | 1 - .../invalid_format_missing_field_header_type.html | 1 - .../invalid_format_missing_field_info_version.html | 1 - .../invalid_format_missing_field_items_type.html | 1 - .../invalid_format_missing_field_operation_responses.html | 1 - .../invalid_format_missing_field_parameter_in.html | 1 - .../SwaggerServiceTest/invalid_format_missing_field_paths.html | 1 - .../invalid_format_missing_field_response_description.html | 1 - .../invalid_format_missing_field_tag_name.html | 1 - .../SwaggerServiceTest/invalid_format_missing_local_ref.html | 1 - .../invalid_format_missing_path_parameter.html | 1 - .../SwaggerServiceTest/invalid_format_missing_ref_file.html | 1 - .../SwaggerServiceTest/invalid_format_multiple_body_params.html | 1 - .../SwaggerServiceTest/invalid_format_no_path_params.html | 1 - .../invalid_format_path_param_no_placeholder.html | 1 - .../invalid_format_request_body_invalid_content.html | 1 - .../invalid_format_response_invalid_items.html | 1 - .../invalid_format_security_definition_flow.html | 1 - .../invalid_format_security_definition_in.html | 1 - .../invalid_format_security_definition_type.html | 1 - tests/fixtures/SwaggerServiceTest/invalid_version.html | 1 - .../php_8.4_invalid_format_missing_external_ref.html | 1 - .../php_8.4_invalid_format_missing_local_ref.html | 1 - .../php_8.4_invalid_format_missing_ref_file.html | 1 - 43 files changed, 2 insertions(+), 42 deletions(-) diff --git a/src/Services/SwaggerService.php b/src/Services/SwaggerService.php index 9154955..f689533 100644 --- a/src/Services/SwaggerService.php +++ b/src/Services/SwaggerService.php @@ -853,6 +853,8 @@ protected function getErrorPlace(Throwable $exception): string { $firstTraceEntry = Arr::first($exception->getTrace()); + Arr::forget($firstTraceEntry, 'type'); + $formattedTraceEntry = Arr::map( array: $firstTraceEntry, callback: fn ($value, $key) => $key . '=' . (is_array($value) ? json_encode($value) : $value), diff --git a/tests/fixtures/SwaggerServiceTest/empty_prod_documentation.html b/tests/fixtures/SwaggerServiceTest/empty_prod_documentation.html index f645bb0..a4d2bc8 100644 --- a/tests/fixtures/SwaggerServiceTest/empty_prod_documentation.html +++ b/tests/fixtures/SwaggerServiceTest/empty_prod_documentation.html @@ -14,5 +14,4 @@ line=999 function=getDocumentation class=RonasIT\AutoDoc\Drivers\LocalDriver -type=-> args=[] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_array_parameter_no_items.html b/tests/fixtures/SwaggerServiceTest/invalid_format_array_parameter_no_items.html index 842e530..ef721d7 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_array_parameter_no_items.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_array_parameter_no_items.html @@ -14,5 +14,4 @@ line=999 function=validateType class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[{"type":"array"},["array","boolean","integer","number","string","object","null","undefined"],"paths.\/users.post.parameters.0"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_array_response_body_no_items.html b/tests/fixtures/SwaggerServiceTest/invalid_format_array_response_body_no_items.html index 75b9fc8..074a518 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_array_response_body_no_items.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_array_response_body_no_items.html @@ -14,5 +14,4 @@ line=999 function=validateType class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[{"type":"array"},["array","boolean","integer","number","string","object","null","undefined","file"],"paths.\/users.get.responses.200.schema"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_array_response_header_no_items.html b/tests/fixtures/SwaggerServiceTest/invalid_format_array_response_header_no_items.html index 252a30b..9aefa9d 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_array_response_header_no_items.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_array_response_header_no_items.html @@ -14,5 +14,4 @@ line=999 function=validateType class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[{"type":"array"},["array","boolean","integer","number","string","object","date","double"],"paths.\/users.get.responses.default.headers.Last-Modified"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_body_and_form_params.html b/tests/fixtures/SwaggerServiceTest/invalid_format_body_and_form_params.html index 29eee95..339848f 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_body_and_form_params.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_body_and_form_params.html @@ -14,5 +14,4 @@ line=999 function=validateBodyParameters class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"foo","in":"body","schema":{"type":"number"}},{"name":"bar","in":"formData","schema":{"type":"number"}}],"paths.\/users\/{username}.post"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_header_params.html b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_header_params.html index cf8549f..bc7f9dd 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_header_params.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_header_params.html @@ -14,5 +14,4 @@ line=999 function=validateParamsUnique class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"foo","in":"header","schema":{"type":"string"},"required":false},{"name":"username","in":"header","schema":{"type":"string"}},{"name":"username","in":"body","schema":{"type":"string"}},{"name":"foo","in":"header","schema":{"type":"number"},"required":true}],"paths.\/users\/{username}.get"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_operation_id.html b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_operation_id.html index cce113a..be69e69 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_operation_id.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_operation_id.html @@ -14,5 +14,4 @@ line=999 function=validateOperationIdsUnique class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_path_params.html b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_path_params.html index 828fa3d..55a308e 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_path_params.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_path_params.html @@ -14,5 +14,4 @@ line=999 function=validateParamsUnique class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"bar","in":"header","schema":{"type":"string"},"required":false},{"name":"username","in":"header","schema":{"type":"string"}},{"name":"username","in":"body","schema":{"type":"string"}},{"name":"username","in":"path","schema":{"type":"number"},"required":true}],"paths.\/users\/{username}.get"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_path_placeholders.html b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_path_placeholders.html index a91dbd0..60efb50 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_path_placeholders.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_path_placeholders.html @@ -14,5 +14,4 @@ line=999 function=validatePathParameters class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"img_id","in":"path","required":true,"schema":{"type":"number"}}],"\/users\/{username}\/profile\/{username}\/image\/{img_id}","paths.\/users\/{username}\/profile\/{username}\/image\/{img_id}.get"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_tag.html b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_tag.html index a87a79a..fac448b 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_tag.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_duplicate_tag.html @@ -14,5 +14,4 @@ line=999 function=validateTagsUnique class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_file_invalid_consumes.html b/tests/fixtures/SwaggerServiceTest/invalid_format_file_invalid_consumes.html index b9ffc17..4eef501 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_file_invalid_consumes.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_file_invalid_consumes.html @@ -14,5 +14,4 @@ line=999 function=validateFormDataConsumes class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[{"parameters":[{"name":"username","in":"path","schema":{"type":"string"},"required":true},{"name":"image","in":"formData","schema":{"type":"file"}}],"consumes":["application\/octet-stream","image\/png"],"responses":{"default":{"description":"hello world"}}},"paths.\/users\/{username}\/profile\/image.post"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_file_no_consumes.html b/tests/fixtures/SwaggerServiceTest/invalid_format_file_no_consumes.html index de2e871..4ae073e 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_file_no_consumes.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_file_no_consumes.html @@ -14,5 +14,4 @@ line=999 function=validateFormDataConsumes class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[{"parameters":[{"name":"username","in":"path","schema":{"type":"string"},"required":true},{"name":"image","in":"formData","schema":{"type":"file"}}],"responses":{"default":{"description":"hello world"}}},"paths.\/users\/{username}\/profile\/image.post"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_incorrect_documentation_structure_request.html b/tests/fixtures/SwaggerServiceTest/invalid_format_incorrect_documentation_structure_request.html index e707b99..14ed04f 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_incorrect_documentation_structure_request.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_incorrect_documentation_structure_request.html @@ -14,5 +14,4 @@ line=999 function=getDocumentation class=RonasIT\AutoDoc\Drivers\LocalDriver -type=-> args=[] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_schema_type.html b/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_schema_type.html index 97aee2f..26c0988 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_schema_type.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_schema_type.html @@ -14,5 +14,4 @@ line=999 function=validateType class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[{"type":"something","items":{"user":{"type":"string"}}},["array","boolean","integer","number","string","object","null","undefined","file"],"paths.\/users.get.responses.200.schema"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_parameter_in.html b/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_parameter_in.html index e39711b..2db08db 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_parameter_in.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_parameter_in.html @@ -14,5 +14,4 @@ line=999 function=validateFieldValue class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["paths.\/auth\/login.post.parameters.0.in",["body","formData","query","path","header"]] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_path.html b/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_path.html index b780e79..be2fa5b 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_path.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_path.html @@ -14,5 +14,4 @@ line=999 function=validatePaths class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_status_code.html b/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_status_code.html index fb7578e..65b2b8f 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_status_code.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_invalid_value_status_code.html @@ -14,5 +14,4 @@ line=999 function=validateResponse class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[{"description":"hello world"},"8888","paths.\/users.get"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_external_ref.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_external_ref.html index ecb39f0..a30bbc2 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_external_ref.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_external_ref.html @@ -12,5 +12,4 @@ function=RonasIT\AutoDoc\Validators\{closure} class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["tests\/fixtures\/SwaggerServiceTest\/documentation\/with_definitions.json#\/definitions\/authloginObject","$ref"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_definition_type.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_definition_type.html index dce2962..a91b99f 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_definition_type.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_definition_type.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["type"],"components.schemas.authloginObject"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_header_type.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_header_type.html index da39202..3f7cde4 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_header_type.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_header_type.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["type"],"paths.\/user\/login.get.responses.200.headers.X-Rate-Limit"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_info_version.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_info_version.html index 804653d..e263009 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_info_version.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_info_version.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["title","version"],"info"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_items_type.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_items_type.html index 45fbf8a..8b699a2 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_items_type.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_items_type.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["type"],"paths.\/pet\/findByStatus.get.parameters.0.schema.items"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_operation_responses.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_operation_responses.html index fbfbc8c..cbe9447 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_operation_responses.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_operation_responses.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["responses"],"paths.\/auth\/login.post"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_parameter_in.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_parameter_in.html index fd9dade..2c79d7e 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_parameter_in.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_parameter_in.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["in","name"],"paths.\/auth\/login.post.parameters.0"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_paths.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_paths.html index e0d065c..65cdcdb 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_paths.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_paths.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["openapi","info","paths"]] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_response_description.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_response_description.html index f2b7b57..615b2f2 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_response_description.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_response_description.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["description"],"paths.\/auth\/login.post.responses.200"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_tag_name.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_tag_name.html index bfe1256..0639ba4 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_tag_name.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_field_tag_name.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["name"],"tags.0"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_local_ref.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_local_ref.html index 0dde807..7aeb845 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_local_ref.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_local_ref.html @@ -12,5 +12,4 @@ function=RonasIT\AutoDoc\Validators\{closure} class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["#\/definitions\/loginObject","$ref"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_path_parameter.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_path_parameter.html index d3303a8..002fa6e 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_path_parameter.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_path_parameter.html @@ -14,5 +14,4 @@ line=999 function=validatePathParameters class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"bar","in":"header","schema":{"type":"string"},"required":false},{"name":"username","in":"header","schema":{"type":"string"}},{"name":"username","in":"body","schema":{"type":"string"}}],"\/users","paths.\/users.get"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_ref_file.html b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_ref_file.html index ba71cca..123ae02 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_missing_ref_file.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_missing_ref_file.html @@ -12,5 +12,4 @@ function=RonasIT\AutoDoc\Validators\{closure} class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["invalid-filename.json","$ref"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_multiple_body_params.html b/tests/fixtures/SwaggerServiceTest/invalid_format_multiple_body_params.html index 83220d9..ae7f738 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_multiple_body_params.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_multiple_body_params.html @@ -14,5 +14,4 @@ line=999 function=validateBodyParameters class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"bar","in":"header","schema":{"type":"number"},"required":true},{"name":"foo","in":"body","required":true,"schema":{"type":"number"}},{"name":"foo2","in":"body","schema":{"type":"number"}}],"paths.\/users\/{username}.get"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_no_path_params.html b/tests/fixtures/SwaggerServiceTest/invalid_format_no_path_params.html index b899b3f..fdd77f9 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_no_path_params.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_no_path_params.html @@ -14,5 +14,4 @@ line=999 function=validatePathParameters class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[[{"name":"username","in":"header","required":true,"schema":{"type":"number"}},{"name":"foo","in":"body","schema":{"type":"number"}}],"\/users\/{username}\/{foo}","paths.\/users\/{username}\/{foo}.get"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_path_param_no_placeholder.html b/tests/fixtures/SwaggerServiceTest/invalid_format_path_param_no_placeholder.html index ed46409..b970067 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_path_param_no_placeholder.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_path_param_no_placeholder.html @@ -14,5 +14,4 @@ line=999 function=validatePathParameters class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"foo","in":"path","schema":{"type":"number"}}],"\/users\/{username}","paths.\/users\/{username}.post"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_request_body_invalid_content.html b/tests/fixtures/SwaggerServiceTest/invalid_format_request_body_invalid_content.html index 500d30a..4ce65d2 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_request_body_invalid_content.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_request_body_invalid_content.html @@ -14,5 +14,4 @@ line=999 function=validateRequestBodyContent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[{"image\/png":{"items":[]}},"paths.\/users\/{id}.post"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_response_invalid_items.html b/tests/fixtures/SwaggerServiceTest/invalid_format_response_invalid_items.html index 1042b32..fc2825f 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_response_invalid_items.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_response_invalid_items.html @@ -14,5 +14,4 @@ line=999 function=validateFieldsPresent class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[["type"],"paths.\/users\/{id}.post.responses.200.schema.items"] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_flow.html b/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_flow.html index bf39082..9fb6040 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_flow.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_flow.html @@ -14,5 +14,4 @@ line=999 function=validateFieldValue class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["securityDefinitions.0.flow",["implicit","password","application","accessCode"]] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_in.html b/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_in.html index 4d14690..0f6b4ad 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_in.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_in.html @@ -14,5 +14,4 @@ line=999 function=validateFieldValue class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["securityDefinitions.0.in",["query","header"]] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_type.html b/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_type.html index 0b6a45a..99c7866 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_type.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_format_security_definition_type.html @@ -14,5 +14,4 @@ line=999 function=validateFieldValue class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["securityDefinitions.0.type",["basic","apiKey","oauth2"]] diff --git a/tests/fixtures/SwaggerServiceTest/invalid_version.html b/tests/fixtures/SwaggerServiceTest/invalid_version.html index 6d268ed..76c792c 100644 --- a/tests/fixtures/SwaggerServiceTest/invalid_version.html +++ b/tests/fixtures/SwaggerServiceTest/invalid_version.html @@ -14,5 +14,4 @@ line=999 function=validateVersion class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=[] diff --git a/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_external_ref.html b/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_external_ref.html index 21991a0..a10a48f 100644 --- a/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_external_ref.html +++ b/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_external_ref.html @@ -12,5 +12,4 @@ function={closure:RonasIT\AutoDoc\Validators\SwaggerSpecValidator::validateRefs():1} class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["tests\/fixtures\/SwaggerServiceTest\/documentation\/with_definitions.json#\/definitions\/authloginObject","$ref"] diff --git a/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_local_ref.html b/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_local_ref.html index da0f75c..76cb07a 100644 --- a/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_local_ref.html +++ b/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_local_ref.html @@ -12,5 +12,4 @@ function={closure:RonasIT\AutoDoc\Validators\SwaggerSpecValidator::validateRefs():1} class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["#\/definitions\/loginObject","$ref"] diff --git a/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_ref_file.html b/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_ref_file.html index accaed3..65d130a 100644 --- a/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_ref_file.html +++ b/tests/fixtures/SwaggerServiceTest/php_8.4_invalid_format_missing_ref_file.html @@ -12,5 +12,4 @@ function={closure:RonasIT\AutoDoc\Validators\SwaggerSpecValidator::validateRefs():1} class=RonasIT\AutoDoc\Validators\SwaggerSpecValidator -type=-> args=["invalid-filename.json","$ref"]