Skip to content

Commit

Permalink
MAT-6547 fix response content type violation
Browse files Browse the repository at this point in the history
  • Loading branch information
adongare committed Feb 22, 2024
1 parent 507ec05 commit 006450c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gov/cms/madie/resources/PackageController.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public ResponseEntity<String> getMeasureSimpleXml(
MediaType.APPLICATION_XML_VALUE,
},
consumes = {MediaType.APPLICATION_JSON_VALUE})
public ResponseEntity<String> generateHqmf(@RequestBody Measure measure) throws Exception {
public ResponseEntity<String> generateHqmf(
@RequestBody @Validated(Measure.ValidationSequence.class) Measure measure) throws Exception {
// generate HQMF if the model type is QDM
if (measure != null && measure.getModel() != null && measure.getModel().contains("QDM")) {
return ResponseEntity.ok()
Expand Down

0 comments on commit 006450c

Please sign in to comment.