Skip to content

Commit

Permalink
Fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenchrist committed Mar 2, 2024
1 parent 2ea617b commit 59bf9a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datacontract/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class ExportFormat(str, Enum):
def export(
format: Annotated[ExportFormat, typer.Option(help="The export format.")],
server: Annotated[str, typer.Option(help="The server name to export.")] = None,
rdf_base: Annotated[Optional[str], typer.Option(help="The base URI used to generate the RDF graph.")] = "",
rdf_base: Annotated[Optional[str], typer.Option(help="[rdf] The base URI used to generate the RDF graph.")] = None,
location: Annotated[
str, typer.Argument(help="The location (url or path) of the data contract yaml.")] = "datacontract.yaml",
):
Expand Down
4 changes: 2 additions & 2 deletions datacontract/data_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
to_dbt_sources_yaml, to_dbt_staging_sql
from datacontract.export.jsonschema_converter import to_jsonschema
from datacontract.export.odcs_converter import to_odcs
from datacontract.export.rdf_converter import to_rdf
from datacontract.export.sodacl_converter import to_sodacl
from datacontract.imports.sql_importer import import_sql
from datacontract.export.rdf_converter import to_rdf
from datacontract.integration.publish_datamesh_manager import \
publish_datamesh_manager
from datacontract.lint import resolve
Expand Down Expand Up @@ -160,7 +160,7 @@ def get_data_contract_specification(self):
return resolve.resolve_data_contract(self._data_contract_file, self._data_contract_str,
self._data_contract, self._schema_location)

def export(self, export_format, rdf_base) -> str:
def export(self, export_format, rdf_base: str = None) -> str:
data_contract = resolve.resolve_data_contract(self._data_contract_file, self._data_contract_str,
self._data_contract)
if export_format == "jsonschema":
Expand Down

0 comments on commit 59bf9a1

Please sign in to comment.