addonfactory-ucc-generator icon indicating copy to clipboard operation
addonfactory-ucc-generator copied to clipboard

feat: extended rh_templates to pass user validators to resthandler

Open sgoral-splunk opened this issue 5 months ago • 1 comments

Issue number:ADDON-74237

Summary

Extended rh_templates to pass user validators to resthandler this pr requires changes from splunktauuclib: https://github.com/splunk/addonfactory-ucc-library/pull/316

Changes

  • rh_templates now has an additional list "special_fields"
  • rh_templates now adds "special_fields" to RestModel object
  • GlobalConfigBuilderSchema now calculates "special_fields" for rh_templates

User experience

Name field will be validated with users validators, provided in the globalconfig, on the server side.

Checklist

If your change doesn't seem to apply, please leave them unchecked.

  • [x] I have performed a self-review of this change
  • [x] Changes have been tested
  • [ ] Changes are documented
  • [x] PR title follows conventional commit semantics

sgoral-splunk avatar Sep 16 '24 20:09 sgoral-splunk