Skip to content

Commit

Permalink
[DC-1189] Make name and description required for settings (#1772)
Browse files Browse the repository at this point in the history
* Make name and description required for settings

* Fix test data for settings

* Fix integration tests
  • Loading branch information
s-rubenstein authored Aug 12, 2024
1 parent be8347d commit 908cf73
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/resources/api/data-repository-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7244,6 +7244,8 @@ components:
description: >
⚠️ The configuration describing how select criteria for issuing a snapshot builder request is generated
required:
- name
- description
- domainOptions
- programDataOptions
- featureValueGroups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ private static SnapshotBuilderProgramDataListOption generateSnapshotBuilderProgr

public static final SnapshotBuilderSettings SETTINGS =
new SnapshotBuilderSettings()
.name("Snapshot builder settings name")
.description("Snapshot builder settings description")
.domainOptions(
List.of(
generateSnapshotBuilderDomainOption(
Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/omop/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"name": "Integration test settings",
"description": "Description for integration test settings",
"domainOptions": [
{
"kind": "domain",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"name": "Generated snapshot builder dataset",
"description": "A generic OMOP dataset generated by the TDR Setup Resources Script",
"domainOptions": [
{
"kind": "domain",
Expand Down

0 comments on commit 908cf73

Please sign in to comment.