Skip to content

Commit

Permalink
Added missing datamap to compressed study json 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Jul 11, 2024
1 parent 950fd6d commit 36ab086
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Json/Study.fs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ module Study =
Encode.tryIncludeSeq "Contacts" Person.encoder study.Contacts
Encode.tryIncludeSeq "StudyDesignDescriptors" OntologyAnnotation.encoder study.StudyDesignDescriptors
Encode.tryIncludeSeq "Tables" (ArcTable.encoderCompressed stringTable oaTable cellTable) study.Tables
Encode.tryInclude "Datamap" (DataMap.encoderCompressed stringTable oaTable cellTable) study.DataMap
Encode.tryIncludeSeq "RegisteredAssayIdentifiers" Encode.string study.RegisteredAssayIdentifiers
Encode.tryIncludeSeq "Comments" Comment.encoder study.Comments
]
Expand All @@ -95,6 +96,7 @@ module Study =
?contacts = get.Optional.Field "Contacts" (Decode.resizeArray Person.decoder),
?studyDesignDescriptors = get.Optional.Field "StudyDesignDescriptors" (Decode.resizeArray OntologyAnnotation.decoder),
?tables = get.Optional.Field "Tables" (Decode.resizeArray <| ArcTable.decoderCompressed stringTable oaTable cellTable),
?datamap = get.Optional.Field "DataMap" (DataMap.decoderCompressed stringTable oaTable cellTable),
?registeredAssayIdentifiers = get.Optional.Field "RegisteredAssayIdentifiers" (Decode.resizeArray Decode.string),
?comments = get.Optional.Field "Comments" (Decode.resizeArray Comment.decoder)
)
Expand Down

0 comments on commit 36ab086

Please sign in to comment.