The latest Swagger v3 has YAML format. Does AEM support Swagger definition in YAML format or it has to convert to JSON in order for AEM to parse? Tried with petstore.yaml with that latest SP 14 and the create data source UI hang.
Solved! Go to Solution.
Views
Replies
Total Likes
AEM forms currently support swagger 2.0 but recall a discussion around including support for 3.0 in future releases.
I will check and get back to you with a response to your questions on the YAML format as well.
you can use YAML format, does not have to be in JSON
yes AEM Forms supports OpenAPI Specification version 2.0 (fka Swagger).
We've tried with petstore.yaml with SP 14 and it hang and cannot finish during cloud data source creation. The error log showing AEM is trying to parse it as JSON via Google JSON parser and failed with null pointer errors. It would be great if the success steps in SP 14 can be shared. Thanks a lot.
@Mayank_Gandhi, thank you for confirming that only v2 supported. Tested v2 YAML and JSON and both work. https://petstore3.swagger.io/api/v3/openapi.yaml was the URL tested and failed, which is the V3 version. This explains why it didn't work. Looking forward to see AEM supporting v3 API in the future.
A feature pack request to support V3 is already logged and will be supported in future releases.
@Pulkit_Jain_ Is this supported now?
Views
Replies
Total Likes
Most likely not, but
let pulkit confirm
Views
Replies
Total Likes
Views
Likes
Replies