Skip to content

Commit

Permalink
Change field include and exclude handling
Browse files Browse the repository at this point in the history
This changes the implementation of the include/exclude field handling
so that it is done explicitly in the API handlers rather than
implicitly in the middleware layer.  It also adds support for the
"all_fields" query parameter.

The response behavior will now be that any optional field that is nil
will be excluded from responses unless the "all_fields" parameter is
set, or the field name appears in the "fields=" query parameter.

Signed-off-by: Allain Legacy <[email protected]>
  • Loading branch information
alegacy committed Jan 31, 2025
1 parent 744dece commit aeed3de
Show file tree
Hide file tree
Showing 34 changed files with 1,606 additions and 1,998 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ require (
github.com/google/uuid v1.6.0
github.com/jackc/pgerrcode v0.0.0-20220416144525-469b46aa5efa
github.com/jackc/pgx/v5 v5.7.2
github.com/json-iterator/go v1.1.12
github.com/kelseyhightower/envconfig v1.4.0
github.com/oapi-codegen/nethttp-middleware v1.0.2
github.com/oapi-codegen/oapi-codegen/v2 v2.4.1
Expand Down Expand Up @@ -94,6 +93,7 @@ require (
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.4 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/metal3-io/baremetal-operator/apis v0.5.1 // indirect
Expand Down
54 changes: 0 additions & 54 deletions internal/search/projector.go

This file was deleted.

232 changes: 0 additions & 232 deletions internal/search/projector_evaluator.go

This file was deleted.

Loading

0 comments on commit aeed3de

Please sign in to comment.