Fix post/path requests with missing 'type' property for gender

This commit is contained in:
Julie Lenaerts 2025-02-27 12:19:10 +01:00
parent 217ac7b9e7
commit a71d066765
2 changed files with 11 additions and 0 deletions

View File

@ -34,6 +34,7 @@ class GenderDocGenNormalizer implements ContextAwareNormalizerInterface, Normali
'id' => $gender->getId(),
'label' => $this->translatableStringHelper->localize($gender->getLabel()),
'genderTranslation' => $gender->getGenderTranslation(),
'type' => 'chill_main_gender'
];
}
}

View File

@ -943,6 +943,16 @@ paths:
description: "ok"
401:
description: "Unauthorized"
/1.0/main/gender.json:
get:
tags:
- gender
summary: Return all gender types
responses:
200:
description: "ok"
401:
description: "Unauthorized"
/1.0/main/user-job.json:
get:
tags: