From 8f4a200f3352d0606b52778e631e369862e7b155 Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Sat, 28 Jun 2025 09:34:43 +0500 Subject: [PATCH] fix: OpenAPI broken docs link --- CHANGELOG.md | 4 ++++ src/PostgREST/Version.hs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c77975406..9ec8188a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +### Fixed + +- Fix OpenAPI broken docs link by @taimoorzaeem in #4048 + ## [13.0.4] - 2025-06-17 ### Fixed diff --git a/src/PostgREST/Version.hs b/src/PostgREST/Version.hs index b59495789..54102994a 100644 --- a/src/PostgREST/Version.hs +++ b/src/PostgREST/Version.hs @@ -26,7 +26,7 @@ prettyVersion = docsVersion :: Text docsVersion | isPreRelease = "latest" - | otherwise = "v" <> (T.intercalate "." . map show . take 1 $ version) + | otherwise = "v" <> T.intercalate "." (take 1 version) -- | Versions with two components (e.g., '1.1') are treated as pre-releases.