Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14986

Component Parameters don't accept Value Type as `datetime` but `calendar` and is not matching as per documentation

    XMLWordPrintable

Details

    • Pulsar
    • Pulsar 282 - Cycle 2-1, Pulsar 284 - Cycle 2 Cooldown, Pulsar 287 - Cycle 3 Cooldown, Pulsar 288&9 - Cycle 4, Pulsar 290 - Cycle 4 Cooldown

    Description

      Issue:

      While creating component with params via Site Management apis, it's not clear per this document what valueType are allowed in Parameter.

      https://documentation.bloomreach.com/api-reference/content/management/site-management-api/schemas.html#ParameterType

      When tried with 'datetime' as suggested in https://documentation.bloomreach.com/developers/content/components/define-configuration-parameters-for-dynamic-components.html --> Add Component Parameters --> Required Properties --> valueType ,

      the api is failing with message like `HV000028: Unexpected exception during isValid call. ` when put default value = "" or a valid value like "defaultValue": "2007-12-03T00:00:00.00Z"

      or with message 'ComponentDefinition.parameters[0].valueType: must not be null' when put defaultValue = null or is omitted

      But when tried with `calendar` type and null value or missing defaultValue, it works.

      So I assume we need to update our documentation.

      Expected:

      1. we need to clearly provide which valueTypes are available in the schemas doc
      2. need to update the site config doc with correct type accordingly
      3. fix api if needed

      Attachments

        Activity

          People

            Unassigned Unassigned
            achandravadiya Ajay Chandravadiya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: