mirror of
https://github.com/goauthentik/authentik
synced 2026-05-01 11:57:09 +02:00
* packages/clients: only generate needed endpoints Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * lint Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * machete Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * fixup Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> * lint Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space> --------- Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
17 lines
457 B
Makefile
Generated
17 lines
457 B
Makefile
Generated
.SHELLFLAGS += -x -e
|
|
PWD = $(shell pwd)
|
|
UID = $(shell id -u)
|
|
GID = $(shell id -g)
|
|
|
|
build:
|
|
rm -rf "${PWD}"/*.go
|
|
"${PWD}/../../scripts/api_filter_schema.py" "${PWD}/../../schema.yml" "${PWD}/schema.yml" "${PWD}/operation_ids"
|
|
docker compose run --rm --user "${UID}:${GID}" gen \
|
|
generate \
|
|
-i /local/schema.yml \
|
|
-g go \
|
|
-o local \
|
|
-c /local/config.yaml
|
|
rm -rf "${PWD}/.openapi-generator" "${PWD}/api/openapi.yaml" "${PWD}/schema.yml"
|
|
go fmt .
|