Accept native scalar values in PostgREST JSON#1495
Closed
Dame5211 wants to merge 1 commit into
Closed
Conversation
Constraint: generated Supabase TypedDict inputs can include datetime and UUID values that httpx/pydantic can serialize Rejected: loosen insert payloads to Any | would discard useful recursive JSON typing Confidence: high Scope-risk: narrow Directive: Keep the JSON alias recursive and explicit when adding additional serializable scalar types Tested: uv run --directory src/postgrest pytest tests/test_types.py Tested: uv run --directory src/postgrest ruff check src/postgrest/types.py tests/test_types.py Tested: git diff --check Not-tested: full workspace test suite Co-authored-by: OmX <omx@oh-my-codex.dev>
Contributor
|
Won't work. This needs to be done in |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1443
Summary
Verification
platform darwin -- Python 3.13.12, pytest-8.4.2, pluggy-1.6.0
rootdir: /Users/huly64/Documents/GITHUB_ISSUE_KILLER/upstreams/supabase-py/src/postgrest
configfile: pyproject.toml
plugins: anyio-4.11.0, cov-6.3.0, asyncio-1.0.0, depends-1.0.1
asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 1 item
tests/test_types.py . [100%]
============================== 1 passed in 0.11s ===============================