0

SDR publishes an ALPS profile. This profile is partwise customizable according to the official documentation, thus custom field descriptions may be added. Is there a possibility to customize the profile further in a way that it expresses whether fields are optional or required?

I understand that I could go for a work-around, such as abusing the description field. However, I'm rather searching for a non-hacky solution, though I'm aware that such isn't included in the latest ALPS draft.

Community
  • 1
  • 1
aboger
  • 2,214
  • 6
  • 33
  • 47
  • Did you ever find this out? I am also in the same problem, and currently using @Description annotation and passing a stringified json as description to create a generic framework in angular. – Anmol Jain May 26 '20 at 00:38
  • Hi, unfortunately not. I tried back then to replace the SDR beans that create the descriptions in the profile, but it's hard to do that. Too much `private` and/or `final` for a non-hacky solution. We finally turned away from using the profile, since it simply didn't return enough useful information and built an alternative endpoint providing all required info, collected using Java reflection. So in total, we're not reading the profile at all. – aboger May 26 '20 at 02:08
  • 1
    I was able to enrich the alps data by following: https://stackoverflow.com/questions/33397920/spring-data-rest-custom-json-schema-alps/38632114#comment116877541_38632114 The ext object is useful for adding author specific detail – Kevvvvyp Feb 09 '21 at 21:43

0 Answers0