Skip to content

Commit

Permalink
fix: Remove OpenAPI format for rowFilter params (#3661)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantheman2865 authored Jul 16, 2024
1 parent d7da181 commit b261abd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased


### Added

- #3558, Add the `admin-server-host` config to set the host for the admin server - @develop7
Expand All @@ -15,6 +16,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

- #3091, Broken link in OpenAPI description `externalDocs` - @salim-b
- #3659, Embed One-to-One relationship with different column order properly - @wolfgangwalther
- #3504, Remove `format` from `rowFilter` parameters in OpenAPI - @dantheman2865

### Changed

Expand Down
3 changes: 1 addition & 2 deletions src/PostgREST/Response/OpenAPI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ makeRowFilter tn c =
& required ?~ False
& schema .~ ParamOther ((mempty :: ParamOtherSchema)
& in_ .~ ParamQuery
& type_ ?~ SwaggerString
& format ?~ colType c))
& type_ ?~ SwaggerString))

makeRowFilters :: Text -> [Column] -> [(Text, Param)]
makeRowFilters tn = fmap (makeRowFilter tn)
Expand Down

0 comments on commit b261abd

Please sign in to comment.