Skip to content

Instantly share code, notes, and snippets.

@mik-laj
Last active May 31, 2020 12:04
Show Gist options
  • Save mik-laj/58a9953ec47cde741d7d4fb8e75b0ae5 to your computer and use it in GitHub Desktop.
Save mik-laj/58a9953ec47cde741d7d4fb8e75b0ae5 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
yq r airflow/api_connexion/openapi/v1.yaml --tojson \
| jq \
'
.paths
| to_entries[]
| (
(.value|del(.parameters)|keys[]|ascii_upcase)
+
" "
+
.key
)
' -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment