Skip to content

Conversation

jp-tosca
Copy link

This pull request introduces support for handling the datasetType property in the dataset DTO and ensures it is correctly included in payload transformations. The main changes are grouped by DTO updates and transformer logic enhancements.

DTO updates:

  • Added an optional datasetType property to the DatasetDTO interface in src/datasets/domain/dtos/DatasetDTO.ts, allowing datasets to specify their type.

Transformer logic enhancements:

  • Updated the transformDatasetModelToNewDatasetRequestPayload function in src/datasets/infra/repositories/transformers/datasetTransformers.ts to conditionally include datasetType in the payload if it is present in the dataset.

pdurbin added a commit to pdurbin/dataverse-frontend that referenced this pull request Sep 8, 2025
Note that it depends on this PR:
IQSS/dataverse-client-javascript#354

However, there's a new PR to try instead:
IQSS/dataverse-client-javascript#360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant