mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2025-09-30 10:04:44 +08:00
chore: remove openapi patch for fixed upstream / move utils to cmd
This commit is contained in:
parent
c7a1d5dcef
commit
e10830434b
3 changed files with 4 additions and 8 deletions
8
Makefile
8
Makefile
|
@ -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:
|
||||
|
|
|
@ -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) {
|
Loading…
Add table
Reference in a new issue