Details
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.