Skip to content

Instantly share code, notes, and snippets.

@dexterlabora
Created February 12, 2021 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dexterlabora/0dfb2d1d4c44e2e74ae34ca237046605 to your computer and use it in GitHub Desktop.
Save dexterlabora/0dfb2d1d4c44e2e74ae34ca237046605 to your computer and use it in GitHub Desktop.
JSONata - Parse Open API v2 Spec by Path, Operation, Description and Tags
/* OAS Path Ops and Tags */
(
$.paths.*#$index.**.operationId.{
/*"pathIndex": $index,*/
"path": $keys($$.paths)[$index],
"operationid": %.operationId,
"description": %.description,
"tags":%.tags
};
)
@dexterlabora
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment