-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerated using newer version of swagger-codegen
Moved models to Models Mapped BigDecimal to Float manually in gen config Documented generation process
- Loading branch information
1 parent
30191c0
commit 2ae523c
Showing
94 changed files
with
1,918 additions
and
1,148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
<?php | ||
|
||
return Symfony\CS\Config::create() | ||
->level(Symfony\CS\FixerInterface::PSR2_LEVEL) | ||
return PhpCsFixer\Config::create() | ||
->setUsingCache(true) | ||
->fixers( | ||
[ | ||
'ordered_use', | ||
'phpdoc_order', | ||
'short_array_syntax', | ||
'strict', | ||
'strict_param' | ||
] | ||
) | ||
->finder( | ||
Symfony\CS\Finder\DefaultFinder::create() | ||
->in(__DIR__) | ||
->setRules([ | ||
'@PSR2' => true, | ||
'ordered_imports' => true, | ||
'phpdoc_order' => true, | ||
'array_syntax' => [ 'syntax' => 'short' ], | ||
'strict_comparison' => true, | ||
'strict_param' => true, | ||
'no_trailing_whitespace' => false, | ||
'no_trailing_whitespace_in_comment' => false, | ||
'braces' => false, | ||
'single_blank_line_at_eof' => false, | ||
'blank_line_after_namespace' => false, | ||
]) | ||
->setFinder( | ||
PhpCsFixer\Finder::create() | ||
->exclude('test') | ||
->exclude('tests') | ||
->in(__DIR__) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Clone and build swagger-codegen standalone jar | ||
|
||
git clone https://github.com/swagger-api/swagger-codegen.git | ||
cd swagger-codegen | ||
JAVA_HOME=/usr/lib/jvm/java-8-openjdk mvn clean package | ||
cp modules/swagger-codegen-cli/target/swagger-codegen-cli.jar ~/Software/ | ||
|
||
# Regenerate to new folder | ||
|
||
/usr/lib/jvm/java-8-openjdk/bin/java -jar ~/Software/swagger-codegen-cli.jar generate \ | ||
-i royal-mail-click-drop-rest-api-client/config/click-and-drop-api-v1.yaml \ | ||
-l php -c royal-mail-click-drop-rest-api-client/config/config.json \ | ||
--type-mappings BigDecimal=float \ | ||
-o royal-mail-click-drop-rest-api-client-regen | ||
|
||
# Copy results in and fix up any manual changes to namespaces/urls etc | ||
|
||
cp -r royal-mail-click-drop-rest-api-client-regen/SwaggerClient-php/. royal-mail-click-drop-rest-api-client/ | ||
|
||
|
||
models to Models | ||
RoyalMail\ClickAndDrop\Rest\Api\RoyalMail\ClickAndDrop\Rest\Api to RoyalMail\ClickAndDrop\Rest\Api | ||
All URIs are relative to *https://localhost/api/v1* to https://api.parcel.royalmail.com/api/v1 | ||
Revert changes in composer.json as needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.