chore: remove openapi patch for fixed upstream / move utils to cmd

This commit is contained in:
bakito 2025-09-15 18:47:07 +02:00
parent c7a1d5dcef
commit e10830434b
No known key found for this signature in database
GPG key ID: BCCEB081DB8A24D8
3 changed files with 4 additions and 8 deletions

View file

@ -17,7 +17,7 @@ deepcopy-gen: tb.controller-gen
.PHONY: docs
docs:
go run docs/main.go
go run cmd/docs/main.go
# Run tests
test: generate lint test-ci
@ -79,12 +79,12 @@ ADGUARD_HOME_VERSION ?= v0.107.66
model: tb.oapi-codegen
@mkdir -p tmp
go run openapi/main.go $(ADGUARD_HOME_VERSION)
go run cmd/openapi/main.go $(ADGUARD_HOME_VERSION)
$(TB_OAPI_CODEGEN) -package model -generate types,client -config .oapi-codegen.yaml tmp/schema.yaml > internal/client/model/model_generated.go
model-diff:
go run openapi/main.go $(ADGUARD_HOME_VERSION)
go run openapi/main.go
go run cmd/openapi/main.go $(ADGUARD_HOME_VERSION)
go run cmd/openapi/main.go
diff tmp/schema.yaml tmp/schema-master.yaml
zellij:

View file

@ -87,10 +87,6 @@ func main() {
}
func correctEntries(schema map[string]any) {
// https://github.com/AdguardTeam/AdGuardHome/pull/7678
if err := unstructured.SetNestedField(schema, "string", "components", "schemas", "QueryLogItem", "properties", "client_proto", "type"); err != nil {
log.Fatalln(err)
}
}
func addFakeTags(schema map[string]any) {