forked from PostgREST/postgrest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some OpenAPI issues (PostgREST#970)
* Fix PostgREST#933, update externals docs url to current version * Fix PostgREST#962, openApi don't err on nonexistent schema * Fix PostgREST#954, make OpenAPI rpc output dependent on user privileges
- Loading branch information
1 parent
6ea9a28
commit 8a44e0b
Showing
13 changed files
with
176 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module Feature.NonexistentSchemaSpec where | ||
|
||
import Network.Wai (Application) | ||
import Protolude hiding (get) | ||
import Test.Hspec | ||
import Test.Hspec.Wai | ||
|
||
spec :: SpecWith Application | ||
spec = | ||
describe "Non existent api schema" $ do | ||
it "succeeds when requesting root path" $ | ||
get "/" `shouldRespondWith` 200 | ||
|
||
it "gives 404 when requesting a nonexistent table in this nonexistent schema" $ | ||
get "/nonexistent_table" `shouldRespondWith` 404 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.