Skip to content

Commit

Permalink
fix handling UMDvDate in codegen yaml (#99 SPECITS-70)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-iancu committed Dec 4, 2023
1 parent 6aa1bc1 commit 6120432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion development/src/Writer/Codegen.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Codegen extends AbstractWriter {
protected function prepareInput(): void {
echo "prepareInput() ...";
$this->input = preg_replace('#\\/schemas\\/U((?:Dv|Party|Version|Object|Uid|Content|Item|DataValue)[a-zA-Z]*)#', '\\/schemas\\/$1', $this->input);
$this->input = preg_replace('#\\/schemas\\/UM(DvDateTime)#', '\\/schemas\\/$1', $this->input);
$this->input = preg_replace('#\\/schemas\\/UM(DvDateTime|DvDate)#', '\\/schemas\\/$1', $this->input);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions specifications/schemas/data_types/DvIntervalOfDate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ properties:
type: string
default: DV_INTERVAL
lower:
$ref: ./UMDvDate.yaml
$ref: ../data_types/UMDvDate.yaml
upper:
$ref: ./UMDvDate.yaml
$ref: ../data_types/UMDvDate.yaml
x-discriminator-value: DV_INTERVAL_of_DATE

0 comments on commit 6120432

Please sign in to comment.