Skip to content

Commit f6c6ac4

Browse files
authored
Merge pull request #85 from Spell6inder/patch-1
Add docler-labs/api-client-exception v2 to generated composer.json
2 parents dd30187 + 593b913 commit f6c6ac4

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [10.0.1] - 2023.01.10
8+
### Added
9+
- docler-labs/api-client-exception v2 to generated composer.json
10+
711
## [10.0.0] - 2022.06.27
812
### Changed
913
- Generator now fails if field in spec is nullable and optional (unsupported feature)

src/Meta/ComposerJsonTemplate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function render(Specification $specification, MetaFileCollection $fileReg
6565
private function getCommonPackages(): array
6666
{
6767
return [
68-
'docler-labs/api-client-exception' => '^1.0',
68+
'docler-labs/api-client-exception' => '^1.0|^2.0',
6969
'psr/container' => '^1.0',
7070
'psr/http-client' => '^1.0',
7171
];

test/suite/functional/Meta/ComposerJson/composer_default.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"require": {
1111
"php": ">=7.4",
12-
"docler-labs/api-client-exception": "^1.0",
12+
"docler-labs/api-client-exception": "^1.0|^2.0",
1313
"ext-json": "*",
1414
"guzzlehttp/psr7": "^1.6",
1515
"pimple/pimple": "^3.3",

test/suite/functional/Meta/ComposerJson/composer_guzzle_message.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"require": {
1111
"php": ">=7.4",
12-
"docler-labs/api-client-exception": "^1.0",
12+
"docler-labs/api-client-exception": "^1.0|^2.0",
1313
"ext-json": "*",
1414
"guzzlehttp/psr7": "^1.6",
1515
"pimple/pimple": "^3.3",

test/suite/functional/Meta/ComposerJson/composer_nyholm_message.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"require": {
1111
"php": ">=7.4",
12-
"docler-labs/api-client-exception": "^1.0",
12+
"docler-labs/api-client-exception": "^1.0|^2.0",
1313
"ext-json": "*",
1414
"nyholm/psr7": "^1.3",
1515
"pimple/pimple": "^3.3",

test/suite/functional/Meta/ComposerJson/composer_with_intl_requirement.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"require": {
1111
"php": ">=7.4",
12-
"docler-labs/api-client-exception": "^1.0",
12+
"docler-labs/api-client-exception": "^1.0|^2.0",
1313
"ext-intl": "*",
1414
"ext-json": "*",
1515
"guzzlehttp/psr7": "^1.6",

0 commit comments

Comments
 (0)