...
1#!/bin/bash
2
3source "$(dirname "${BASH_SOURCE}")/lib/init.sh"
4
5# OUTPUT_PATH allows the verify script to generate into a different folder.
6output_path="${OUTPUT_PATH:-openapi}"
7output_package="${SCRIPT_ROOT}/${output_path}"
8
9GENERATOR=openapi EXTRA_ARGS=--openapi:output-package-path=${output_path}/generated_openapi ${SCRIPT_ROOT}/hack/update-codegen.sh
10
11go build github.com/openshift/api/openapi/cmd/models-schema
12
13./models-schema | jq '.' > ${output_package}/openapi.json
View as plain text