Skip to content

'fix(fetch_with_meta) :: return json bodies under the documented key - #1393

Open
81reap wants to merge 1 commit into
sqlpage:mainfrom
81reap:drift/3-fetch-with-meta
Open

'fix(fetch_with_meta) :: return json bodies under the documented key#1393
81reap wants to merge 1 commit into
sqlpage:mainfrom
81reap:drift/3-fetch-with-meta

Conversation

@81reap

@81reap 81reap commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

addresses B3 in #1386

lmk if you would rather I go the other direction where we document json_body. to me it seemed better to overload the known body key

@lovasoa lovasoa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to avoid breaking existing applications, and avoid polymorphic response fields. Having a json field that can only contain json is easier to handle. But you are right that we should document it!

@81reap

81reap commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

will follow up with a rev2!

@81reap
81reap force-pushed the drift/3-fetch-with-meta branch from c4492c1 to 20a342f Compare August 20, 2026 00:57
@81reap

81reap commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

@lovasoa actually as I was making the change, I realized that documenting it as json_body is actually a breaking change when viewed from an end user perspective. https://sql-page.com/functions.sql?function=fetch_with_meta

lmk your thoughts, I can still move forward with json_body if you prefer

@81reap
81reap requested a review from lovasoa August 20, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants