Skip to content

Commit

Permalink
ci: fixed templates (#660)
Browse files Browse the repository at this point in the history
* ci: fixed templates

* fix: fixed webhooks proformas event type
  • Loading branch information
emajo authored May 4, 2023
1 parent 318dd97 commit 73f925d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
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

0 comments on commit 73f925d

Please sign in to comment.