Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-10083

Error when creating ActiveDocs using yaml containing date-time format modifier

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.13.2 GA
    • Toolbox
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Moderate

    Description

      When Creating new ActiveDocs using toolbox

      3scale activedocs create <remote> <activedocs-name> <specification>
      

      using a specification in yaml file that contains a value of type date-time format modifier for e.g.

      zonedDataTime:
          format: date-time
          type: string
          example:  2022-05-10T12:20:40-04:00
      

      error occurs ( shown in the toolbox-activedocs-err.log ) and activedocs is not created . 

      The string specified for the date-time is valid as per the OpenAPI 3.0 specificiation. The error occurs in YAML.safe_load. The workaround is to use enclose the value in quotes ( either double or single )

      zonedDataTime:
          format: date-time
          type: string
          example:  "2022-03-10T12:15:50-04:00"
      

      or

      zonedDataTime:
          format: date-time
          type: string
          example: '2022-03-10T12:15:50-04:00'
      

      With the above change, activedocs is created. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-cvajjhal Chandrasekhar Vajjhala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: