Skip to content

Commit

Permalink
Merge pull request #27 from molgenis/fix/metaparser
Browse files Browse the repository at this point in the history
Fix metadata parser for FORMAT fields
  • Loading branch information
dennishendriksen authored Dec 5, 2023
2 parents 695ba62 + 9cdaeba commit bb590aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
@NonFinal
public class FieldMetadatas {
@NonNull @Default Map<String, FieldMetadata> info = Collections.emptyMap();
@NonNull @Default Map<String, FieldMetadata> format = Collections.emptyMap();
@NonNull @Default Map<String, Field> format = Collections.emptyMap();
}
12 changes: 5 additions & 7 deletions src/test/resources/test_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@
},
"format": {
"TEST": {
"field": {
"label": "TEST",
"description": "TEST",
"numberType": "NUMBER",
"numberCount": 1,
"type": "STRING"
}
"label": "TEST",
"description": "TEST",
"numberType": "NUMBER",
"numberCount": 1,
"type": "STRING"
}
}
}

0 comments on commit bb590aa

Please sign in to comment.