Hi,
I think validate command does not work correctly for properties. When value for a property is all numbers and there is no quote around it, validate command says it is invalid. Here is the exact message;
C:\Users\is96933\work\validate_bug>apic validate definitions\validate_bug.yaml
Successfully validated validate_bug.yaml against Swagger Version 2.0 schema API definition [validate_bug:1.0.0].
Error validating validate_bug.yaml with API Connect swagger extensions schema API definition [validate_bug:1.0.0].
Invalid type: number (expected string) (/properties/my_property/value)
Successfully validated validate_bug.yaml against IBM Swagger Version 2.0 schema API definition [validate_bug:1.0.0].
Error: Validation did not complete successfully.
There is no way to express type of the property but it complains about value of string property to be number. I think either it should allow setting type or take everything as string. It is valid against swagger 2.0 anyway.
Hi, I think
validate
command does not work correctly for properties. When value for a property is all numbers and there is no quote around it,validate
command says it is invalid. Here is the exact message;There is no way to express type of the property but it complains about value of string property to be number. I think either it should allow setting type or take everything as string. It is valid against swagger 2.0 anyway.
This was fine in older versions like 2.5.21
This is the definition I used
Version info;