Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fixed templates #660

Merged
merged 2 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/enums/EventType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum:
- it.fattureincloud.issued_documents.quotes.delete
- it.fattureincloud.issued_documents.proformas.create
- it.fattureincloud.issued_documents.proformas.update
- it.fattureincloud.issued_documents.proformas.create
- it.fattureincloud.issued_documents.proformas.delete
- it.fattureincloud.issued_documents.receipts.create
- it.fattureincloud.issued_documents.receipts.update
- it.fattureincloud.issued_documents.receipts.delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,4 @@
<None Include="../../README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
<None Remove="System.Web" />
{{#net48}}
<None Remove="System.Net.Http" />
{{/net48}}
</ItemGroup>
<ItemGroup>
<Reference Include="System.Web" />
{{#net48}}
<Reference Include="System.Net.Http" />
{{/net48}}
</ItemGroup>
{{>netcore_project.additions}}</Project>
10 changes: 5 additions & 5 deletions templates/openapi-generator/php/model_generic.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
*
* @var boolean[]
*/
protected static array $openAPINullables = [
protected static $openAPINullables = [
{{#vars}}'{{name}}' => {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{^-last}},
{{/-last}}{{/vars}}
];
Expand All @@ -46,7 +46,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
*
* @var boolean[]
*/
protected array $openAPINullablesSetToNull = [];
protected $openAPINullablesSetToNull = [];

/**
* Array of property to type mappings. Used for (de)serialization
Expand Down Expand Up @@ -93,7 +93,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
*
* @param boolean[] $openAPINullablesSetToNull
*/
private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
private function setOpenAPINullablesSetToNull($openAPINullablesSetToNull): void
{
$this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
}
Expand Down Expand Up @@ -234,7 +234,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct($data = null)
{
{{#parentSchema}}
parent::__construct($data);
Expand All @@ -259,7 +259,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
* @param array $fields
* @param mixed $defaultValue
*/
private function setIfExists(string $variableName, array $fields, $defaultValue): void
private function setIfExists(string $variableName, $fields, $defaultValue): void
{
if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
$this->openAPINullablesSetToNull[] = $variableName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test": "mocha -r ts-node/register 'test/**/*.ts'"
},
"dependencies": {
"axios": "^0.27.2"
"axios": "^0.27.2",
"form-data": "^4.0.0"
},
"devDependencies": {
Expand Down