Created
February 12, 2021 11:38
-
-
Save dexterlabora/0dfb2d1d4c44e2e74ae34ca237046605 to your computer and use it in GitHub Desktop.
JSONata - Parse Open API v2 Spec by Path, Operation, Description and Tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* OAS Path Ops and Tags */ | |
( | |
$.paths.*#$index.**.operationId.{ | |
/*"pathIndex": $index,*/ | |
"path": $keys($$.paths)[$index], | |
"operationid": %.operationId, | |
"description": %.description, | |
"tags":%.tags | |
}; | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example API spec
https://raw.githubusercontent.com/meraki/openapi/master/openapi/spec2.json