Commit Graph
46 Commits
Author SHA1 Message Date
andrii.zinkevych 73a75d1a15 AC-3161: fixed logic affected by "RFC: Deprecate passing null" 2022-05-30 10:36:26 +02:00
Rajesh Kumar fd3385c10d AC-2941::Reverted because already fixed by someone and code is merged 2022-05-17 19:48:45 +05:30
Ihor Sviziev f6c4cbd23f Use one format in all places for array_merge
Fix failing static tests
2020-09-23 09:17:20 +03:00
Ihor Sviziev a2b9380986 Use one format in all places for array_merge
Fix potential issues when no items in array
Convert all array_merge into single format
2020-09-23 09:17:20 +03:00
al.kravchuk f1eb7a33bb magento/magento2#24626: Webapi Swager schema generation fail in case when Get endpoint has param with Extension Attributes [Case#2].
Try to fix static tests.
2019-09-17 14:38:17 +03:00
al.kravchuk 8dd87681d4 magento/magento2#24626: Webapi Swager schema generation fail in case when Get endpoint has param with Extension Attributes [Case#2].
Try to fix static tests.
2019-09-17 14:03:17 +03:00
al.kravchuk 7e30a18902 magento/magento2#24626: Webapi Swager schema generation fail in case when Get endpoint has param with Extension Attributes [Case#2].
Fix warnings for empty objects in Get endpoints.
2019-09-17 09:27:52 +03:00
Magento Community Engineering 8dfc1bb6e1 ENGCOM-5610: magento/magento2#24116: Webapi schema generation fail in case when Ge… #24117
- Merge Pull Request magento/magento2#24117 from swnsma/magento2-1:Swager-Generation-Failed-Fix
 - Merged commits:
   1. 166a1e0cf3
2019-08-13 11:08:31 -05:00
al.kravchuk 166a1e0cf3 magento/magento2#24116: Webapi schema generation fail in case when Get endpoint has param with Extension Attributes.
Fix swagger generator.
2019-08-13 12:08:24 +03:00
Harald Deiser 735024aef0 MC-16991: Fixed static tests, changed formating and updated unit tests 2019-07-09 11:26:58 +02:00
Lars Roettig 245d581623 MC-16959: Fix for strpos 2019-07-08 21:00:10 +02:00
Serhii Dzhepa 5997307445 fixed typos 2019-06-04 09:57:22 -05:00
Vishal Gelani 19ea6d7b35 Update Generator.php 2019-05-31 11:35:26 +05:30
Vishal Gelani e9a64758e2 Update Generator.php 2019-05-30 13:12:09 +05:30
Vishal Gelani b6867e13c6 Update Generator.php 2019-05-30 12:26:09 +05:30
Vishal Gelani 64e32d77c3 Update Generator.php 2019-05-30 11:40:58 +05:30
Simon Schröer a50d6292f9 Re-enable XML as request and response types within the SwaggerUI 2019-05-27 16:42:49 +02:00
Jakub Idziak d76fe2026e ISSUE-11477 - fixed Swagger response for searchCriteria - added zero index to array signifier 2018-06-08 02:55:14 +00:00
Stanislav Idolov 8fb5cd2af5 ENGCOM-1020: [Forwardport] Performance: remove count() form the condition section of a loop #14195 2018-04-03 12:14:08 +03:00
Carey Sizer 918049cbfe Added HTTP 202 Response code for async schema responses 2018-03-23 17:48:47 +13:00
Alexander Shkurko 73099fdecc Performance: remove count() form the condition section of a loop 2018-03-20 10:00:16 +00:00
Lena Orobei a0756f2ea9 Merge branch 'develop' of github.com:magento/magento2ce into MM-2551-EQP-Sniffs-To-Magento 2017-12-04 16:53:17 +02:00
Alex Paliarush 5d179514df MAGETWO-83859: EAV metadata service and Attribute type resolver 2017-11-30 12:00:47 -06:00
Lena Orobei 50c83feac4 MAGETWO-84354: Copy EQP sniffs to Magento 2 Core repo 2017-11-30 17:12:31 +02:00
Oleksii Korshenko 1b8c9e7105 MAGETWO-70495: Fix Swagger-generated operation parameter names for "body" parameters #7446
- fixed REST tests
2017-07-11 16:47:01 -05:00
Oleksii Korshenko 747afe200f MAGETWO-70495: Fix Swagger-generated operation parameter names for 'body' parameters #7446
- Merge Pull Request magento/magento2#7446 from careys7/magento2:fix-swagger-parameter-body-name
 - Merged commits:
   1. 00bcf17099
2017-07-11 12:51:14 -05:00
Robert He 4ce29845e7 MAGETWO-66882: Allowing Web API listing to be public - 2.2
- make all services only available for SOAP while REST is protected
2017-04-19 16:16:21 -05:00
Robert He a5a2efd2ed MAGETWO-66882: Allowing Web API listing to be public - 2.2
- make all services only available for SOAP while REST is protected
2017-04-19 15:55:45 -05:00
Oleksii Korshenko 1b5dc60a26 MAGETWO-66875: Remove the copyright year from file headers #8648 2017-03-29 04:48:40 +03:00
KinLok 7df4d17dae Remove more unused dependencies 2017-03-20 21:57:23 +01:00
Vlad Veselov 002d771100 [PSR-2 Compliance] Fix #8612: Hundreds of PHPCS-based static tests violations in mainline
- apply automatic PHPCBF fixes to make PHPCS happy
- Step 0. Install phpcs globally: composer global require squizlabs/php_codesniffer:2.8.0
- Step 1. Execute tool to fix PSR-2 violations in PHP files: ~/.composer/vendor/squizlabs/php_codesniffer/scripts/phpcbf --standard=PSR2 --extensions=php --ignore=generated/*,vendor/*,var/* .
2017-03-11 13:45:04 +02:00
Vlad Veselov 8d379e666c [PSR-2 Compliance] Fix #8612: Hundreds of PHPCS-based static tests violations in mainline
- apply manual fixes to make PHPCS and PHPMD happy
- some phtml templates marked as ignored for now as PHPCS 1.5.3 version produces false-positives on them (PHPCS 2.8.0 treats them fine)
2017-03-11 13:19:58 +02:00
James Halsall a31f4a35c0 Remove the copyright year from file headers 2017-02-22 09:09:36 +00:00
Sergii Kovalenko eb30343a09 MAGETWO-62855: Copyright Year Update 2017 2017-01-05 13:01:45 +02:00
Carey Sizer 00bcf17099 Fix Swagger-generated operation parameter names for "body" parameters
These were previously all output as a string "$body". This improves Swagger-generated API clients and compatibility with swagger-codegen & janephp/openapi generator.

This caused the following issues:

- Variable variable output in janephp/openapi code generation
- Incorrect code output (multiple models called "Body") in janephp/openapi
- "Anonymous" class naming in swagger-codegen generated clients (approx 20 models called Body1, Body2, Body3 are output for a Magento Enterprise schema)

The new format is: operationNamePostBody. Operation Id is guaranteed to be unique under the Open API specification. Changing the body parameter in the schema should also not affect clients conforming to the specification.
2016-11-16 13:06:08 +13:00
Stanislav Idolov e4cfb20a4d Merge remote-tracking branch 'mainline/develop' into literal_classname_to_namespace 2016-07-18 13:15:28 +03:00
Hayder Sharhan 48373c3eea MAGETWO-53008: [Github] Format of responses doesn't match Swagger
- Fixed formatting.
2016-05-26 13:41:17 -05:00
Hayder Sharhan d293229670 MAGETWO-53008: [Github] Format of responses doesn't match Swagger
- Address notes from CR.
2016-05-25 15:33:27 -05:00
Hayder Sharhan 7a4f7850c9 MAGETWO-53008: [Github] Format of responses doesn't match Swagger
- Convert swagger doc's model schema of the response to snake_case.
2016-05-23 17:45:42 -05:00
Stanislav Idolov e282fb4fc2 MAGETWO-51858: Convert literal class names to \Namespace\Classname::class 2016-04-29 12:24:47 +03:00
Joan He 2d368d0134 MAGETWO-48081: Copyright Year Update 2016-03-17 15:49:11 -05:00
Arkadii Chyzhov d0ab410e3d MAGETWO-43020: Implement Authorization for SOAP and REST Schemas 2016-02-02 15:53:12 +02:00
Dale Sikkema 32ec3d8233 MAGETWO-41392: ERROR in swagger UI page
- move logic of getting base path to REST schema generator
2015-08-18 13:56:08 -05:00
Dale Sikkema 763cb54bfd MAGETWO-41392: ERROR in swagger UI page
- refactor URL to only need one query parameter
2015-08-13 15:05:58 -05:00
Dale Sikkema 787e43628f MAGETWO-41390: Request parameters are not populated correctly in Swagger UI
- add type to schema of body parameter
2015-08-12 16:44:53 -05:00
Joan He 3bb7dc15d6 MAGETWO-38497: Implemented Swagger REST API schema generation in Magento 2015-08-12 11:48:12 -05:00