I am currently using the specification to generate TypeScript interfaces with openapi-typescript. Unfortunately, I stumbled upon a problem with the specification. It seems that annotations are in fact not of type string[], they are rather an object in application/json Content-Type.
Steps to Reproduce
Genrate the OSS OpenAPI spec with version 5.3.1
Install Conjur OSS with the quickstart (latest Docker image: 1.20.1-4405)
Upload a test policy with an annotation (found on CyberArk Blog):
Summary
I am currently using the specification to generate TypeScript interfaces with openapi-typescript. Unfortunately, I stumbled upon a problem with the specification. It seems that annotations are in fact not of type
string[]
, they are rather an object inapplication/json
Content-Type.Steps to Reproduce
https://localhost:8443/resources/{account}/policy/store-n-fetch
annotations
in the responseExpected Results
An
annotations
field with the correct type.Actual Results
The JSON I get back is:
Version/Tag number
Environment setup