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
#!/usr/bin/env bash | |
set -e | |
INPUT=$1 | |
# the order of keys. unmentioned keys are sorted ascending after it | |
TOP_LEVEL_ORDER=(openapi info servers tags paths components) | |
COMPONENTS_ORDER=(schemas headers parameters requestBodies responses securitySchemes examples) | |
PROPERTIES_ORDER=(id href title name description status) | |
sort_by_key_args() { |