akamai / cli-property-manager

Use this Property Manager CLI to automate Akamai property changes and deployments across many environments.
Apache License 2.0
29 stars 22 forks source link

Validation issue for DataStream 2 - logStreamName field is not validated properly #70

Closed amosstikal closed 2 years ago

amosstikal commented 3 years ago

Hello,

I'm using rule format: v2020-11-02 and trying to configure DataStream 2 using Akamai Pipeline v0.7.6-RELEASE and getting validation error.

The validation do pass using the Open API (also approved by Akamai technical support), probably there is some issue in the CLI code

Also tried to uninstall and install again the CLI, but that didn't help

This is the command that I'm using: akamai pipeline save -p my.pipeline dev

Here is the json snippet which fails to be validated: ... { "name": "datastream", "options": { "streamType": "LOG", "logStreamTitle": "", "logEnabled": true, "logStreamName": 11135, "samplingPercentage": 100 } }

Here is the validation error: There are validation errors: [ { "location": { "template": "templates/main.json", "variables": [], "location": "rules/behaviors/8/options/logStreamName", "value": "11135" }, "schemaLocation": "/definitions/catalog/behaviors/datastream/properties/options/properties/logStreamName", "detail": "instance type (string) does not match any allowed primitive type (allowed: [\"integer\",\"number\"])", "foundType": "string", "allowedTypes": [ "integer", "number" ] } ]

When trying to reproduce, please try to run several times

This issue is "blocker" for using DataStream 2.0

Amos

amosstikal commented 3 years ago

Hi,

After updating the CLI to version 0.7.7 the issue didn't occur again - I wonder if version 0.7.7 had some related fix

lkowalsk-akamai-com commented 2 years ago

Closing as the issue is not there any more.