Skip to content

Commit

Permalink
fixing generate script
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed May 3, 2024
1 parent 9f0c108 commit 72d75e3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bin/generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,11 @@ function is_dir_empty(string $dir): bool
);

foreach ($versions_to_generate as $version) {
$build_config = new Config\VersionConfig($config, $config->getVersion($version));

$url = $build_config->getUrl();
$version_config = $config->getVersion($version);
$url = $version_config->getUrl();

// build vars
$namespace = $build_config->getFullyQualifiedName(true);
$namespace = $version_config->getFullyQualifiedName(true);
$version = trim($version);
$schema_dir = $config->getSchemaPath() . DIRECTORY_SEPARATOR . $version;

Expand Down Expand Up @@ -507,10 +506,10 @@ function is_dir_empty(string $dir): bool
PHP_EOL
);

$definition = new Definition($build_config);
$definition = new Definition($version_config);
$definition->buildDefinition();

$builder = new Builder($build_config, $definition);
$builder = new Builder($version_config, $definition);
if ($only_library) {
$builder->writeFhirTypeFiles();
} elseif ($only_tests) {
Expand Down

0 comments on commit 72d75e3

Please sign in to comment.