Skip to content

Commit

Permalink
Merge pull request nfephp-org#165 from robmachado/master
Browse files Browse the repository at this point in the history
removendo multipleOf dos scripts criadores de schemas
  • Loading branch information
robmachado authored Mar 12, 2024
2 parents 431438f + 42063ce commit fdb90a9
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 31 deletions.
12 changes: 4 additions & 8 deletions examples/schemes/v2_01_02/test_R2010_JsonSchemaEvtServTom.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
},
"vlrtotalbruto": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
},
"vlrtotalbaseret": {
"required": true,
Expand Down Expand Up @@ -116,8 +115,7 @@
},
"vlrbruto": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
},
"obs": {
"required": false,
Expand Down Expand Up @@ -207,8 +205,7 @@
},
"valorprinc": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
}
}
}
Expand Down Expand Up @@ -240,8 +237,7 @@
},
"valoradic": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
}
}
}
Expand Down
12 changes: 4 additions & 8 deletions examples/schemes/v2_01_02/test_R2020_JsonSchemaEvtServPrest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@
},
"vlrtotalbruto": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
},
"vlrtotalbaseret": {
"required": true,
Expand Down Expand Up @@ -110,8 +109,7 @@
},
"vlrbruto": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
},
"obs": {
"required": false,
Expand Down Expand Up @@ -200,8 +198,7 @@
},
"valorprinc": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
}
}
}
Expand Down Expand Up @@ -232,8 +229,7 @@
},
"valoradic": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@
},
"vlrtotalrec": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
},
"vlrtotalret": {
"required": true,
Expand Down Expand Up @@ -136,8 +135,7 @@
},
"vlrnret": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
},
"vlrtotalrep": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
},
"vlrtotalret": {
"required": true,
Expand Down Expand Up @@ -125,8 +124,7 @@
},
"vlrnret": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
},
"vlrrecbrutatotal": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
},
"vlrcpapur": {
"required": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@
},
"vlrbruto": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
},
"vlrcpdescpr": {
"required": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/schemes/v2_01_02/test_R2060_JsonSchemaEvtCPRB.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
},
"vlrrecbrutatotal": {
"required": true,
"type": "number",
"multipleOf": 0.01
"type": "number"
},
"vlrcpapurtotal": {
"required": true,
Expand Down
9 changes: 8 additions & 1 deletion src/Common/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,14 @@ public function __construct(
$asc = 70; //procura por xsd atualizados com letras no final de F até A
while ($asc >= 65) {
$letter = chr($asc);
$file = $schema . $this->evtAlias . "-" . $this->evtName . "-" . $this->layoutStr . "_{$letter}" . ".xsd";
$file = $schema
. $this->evtAlias
. "-"
. $this->evtName
. "-"
. $this->layoutStr
. "_{$letter}"
. ".xsd";
if (is_file($file)) {
$this->schema = $file;
break;
Expand Down

0 comments on commit fdb90a9

Please sign in to comment.