Skip to content

Commit 16291ba

Browse files
authored
Merge pull request #33 from openintegrations/release-please--branches--main--changes--next
release: 0.1.0-alpha.5
2 parents 4a112e5 + 962e703 commit 16291ba

File tree

12 files changed

+101
-9
lines changed

12 files changed

+101
-9
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
33

44
USER vscode
55

6-
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.35.0" RYE_INSTALL_OPTION="--yes" bash
6+
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.44.0" RYE_INSTALL_OPTION="--yes" bash
77
ENV PATH=/home/vscode/.rye/shims:$PATH
88

99
RUN echo "[[ -d .venv ]] && source .venv/bin/activate || export PATH=\$PATH" >> /home/vscode/.bashrc

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
curl -sSf https://rye.astral.sh/get | bash
2222
echo "$HOME/.rye/shims" >> $GITHUB_PATH
2323
env:
24-
RYE_VERSION: '0.35.0'
24+
RYE_VERSION: '0.44.0'
2525
RYE_INSTALL_OPTION: '--yes'
2626

2727
- name: Install dependencies
@@ -42,7 +42,7 @@ jobs:
4242
curl -sSf https://rye.astral.sh/get | bash
4343
echo "$HOME/.rye/shims" >> $GITHUB_PATH
4444
env:
45-
RYE_VERSION: '0.35.0'
45+
RYE_VERSION: '0.44.0'
4646
RYE_INSTALL_OPTION: '--yes'
4747

4848
- name: Bootstrap

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
curl -sSf https://rye.astral.sh/get | bash
2222
echo "$HOME/.rye/shims" >> $GITHUB_PATH
2323
env:
24-
RYE_VERSION: '0.35.0'
24+
RYE_VERSION: '0.44.0'
2525
RYE_INSTALL_OPTION: '--yes'
2626

2727
- name: Publish to PyPI

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.4"
2+
".": "0.1.0-alpha.5"
33
}

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,59 @@
11
# Changelog
22

3+
## 0.1.0-alpha.5 (2025-03-17)
4+
5+
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/openintegrations/python-sdk/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
6+
7+
### Features
8+
9+
* **api:** Adding viewer endpoint ([#21](https://github.com/openintegrations/python-sdk/issues/21)) ([94978b8](https://github.com/openintegrations/python-sdk/commit/94978b8912be1b7aa481c1a256e2253064c34183))
10+
* **api:** Fixing api key auth ([#22](https://github.com/openintegrations/python-sdk/issues/22)) ([9ab6603](https://github.com/openintegrations/python-sdk/commit/9ab66033155b216c94ed2e72a3fbadce6a5f1982))
11+
* **api:** manual updates ([902c691](https://github.com/openintegrations/python-sdk/commit/902c691f121e2776b1201d00e19a162cc1042068))
12+
* **api:** manual updates ([31a2107](https://github.com/openintegrations/python-sdk/commit/31a210705217385bd71aa4b9457b150cc344ea26))
13+
* **api:** manual updates ([1bc0aa4](https://github.com/openintegrations/python-sdk/commit/1bc0aa4d20fe0b771dfd0861db85144b2c482dfe))
14+
* **api:** manual updates ([735882e](https://github.com/openintegrations/python-sdk/commit/735882e65872becb2622e4b7d41faf610bdcaa73))
15+
* **api:** manual updates ([#10](https://github.com/openintegrations/python-sdk/issues/10)) ([ee8775b](https://github.com/openintegrations/python-sdk/commit/ee8775bcbe538e4ee176ea6b70613f0e7118627f))
16+
* **api:** manual updates ([#11](https://github.com/openintegrations/python-sdk/issues/11)) ([035fbea](https://github.com/openintegrations/python-sdk/commit/035fbead3a022304829924c9996f434a7cd4a593))
17+
* **api:** manual updates ([#12](https://github.com/openintegrations/python-sdk/issues/12)) ([6dfc2e8](https://github.com/openintegrations/python-sdk/commit/6dfc2e881d3b6b113a597c2a9251a00c3203ce84))
18+
* **api:** manual updates ([#13](https://github.com/openintegrations/python-sdk/issues/13)) ([224a7a0](https://github.com/openintegrations/python-sdk/commit/224a7a02297b3b06218ae5f8297c1e829cb91037))
19+
* **api:** manual updates ([#15](https://github.com/openintegrations/python-sdk/issues/15)) ([199f161](https://github.com/openintegrations/python-sdk/commit/199f1610fbc61365c5a4184155b5c99bd72bc116))
20+
* **api:** manual updates ([#17](https://github.com/openintegrations/python-sdk/issues/17)) ([280560d](https://github.com/openintegrations/python-sdk/commit/280560daa08c6650e3f328eddca4352502b956d2))
21+
* **api:** manual updates ([#18](https://github.com/openintegrations/python-sdk/issues/18)) ([524d083](https://github.com/openintegrations/python-sdk/commit/524d083ae36025ce93b4b33ac33d2074d7efae74))
22+
* **api:** manual updates ([#20](https://github.com/openintegrations/python-sdk/issues/20)) ([375e0a4](https://github.com/openintegrations/python-sdk/commit/375e0a47770a2d1b39407c22f3f4bda815ee12cd))
23+
* **api:** manual updates ([#7](https://github.com/openintegrations/python-sdk/issues/7)) ([6b05d11](https://github.com/openintegrations/python-sdk/commit/6b05d115709fed32c7c6884621ac0959abf75ea1))
24+
* **api:** manual updates ([#8](https://github.com/openintegrations/python-sdk/issues/8)) ([5054460](https://github.com/openintegrations/python-sdk/commit/5054460f4d5e441afd71fe29a1ab3ef11ec82cba))
25+
* **api:** manual updates ([#9](https://github.com/openintegrations/python-sdk/issues/9)) ([ac996eb](https://github.com/openintegrations/python-sdk/commit/ac996ebde3816be7fcef375087d13d62d85374f0))
26+
* **api:** Updating viewer enum ([#23](https://github.com/openintegrations/python-sdk/issues/23)) ([4365bf7](https://github.com/openintegrations/python-sdk/commit/4365bf779458b6ac89af2b665ed1d46072a9cf7b))
27+
* **docs:** updating documented docs for mintlify ([e757a5c](https://github.com/openintegrations/python-sdk/commit/e757a5cf1c3fc58a0eeccab66115c1bed18eaedc))
28+
* **docs:** updating documented docs for mintlify ([84bb147](https://github.com/openintegrations/python-sdk/commit/84bb147ab12a84d308242735e5996d2c1b15ff1d))
29+
* **docs:** updating documented docs for mintlify ([3ab7ade](https://github.com/openintegrations/python-sdk/commit/3ab7ade9e3d0e5c699ae5076e7695d1968768b57))
30+
* **docs:** updating documented docs for mintlify ([#19](https://github.com/openintegrations/python-sdk/issues/19)) ([a6f4aae](https://github.com/openintegrations/python-sdk/commit/a6f4aaee848d37d7b1f82d5ba6738db8ee4ca420))
31+
* **docs:** updating documented docs for mintlify ([#24](https://github.com/openintegrations/python-sdk/issues/24)) ([75a1fcd](https://github.com/openintegrations/python-sdk/commit/75a1fcde743331a0a788aa16992f13ecba2c7365))
32+
* **docs:** updating documented docs for mintlify ([#5](https://github.com/openintegrations/python-sdk/issues/5)) ([80624c2](https://github.com/openintegrations/python-sdk/commit/80624c2bfe3e06d971af96da9a629123b7920290))
33+
* **docs:** updating documented docs for stainless ([#26](https://github.com/openintegrations/python-sdk/issues/26)) ([ee7e8f9](https://github.com/openintegrations/python-sdk/commit/ee7e8f91e5ba13b06e959d9f5745ec691aa5987a))
34+
* **docs:** updating documented docs for stainless ([#29](https://github.com/openintegrations/python-sdk/issues/29)) ([749df66](https://github.com/openintegrations/python-sdk/commit/749df664aaaacda0de8b781fdcd4d7e379e2ae5d))
35+
36+
37+
### Bug Fixes
38+
39+
* **ci:** ensure pip is always available ([#36](https://github.com/openintegrations/python-sdk/issues/36)) ([52c3694](https://github.com/openintegrations/python-sdk/commit/52c36947734ae23c2a5dcc6da9bf771a184a1ae6))
40+
* **types:** handle more discriminated union shapes ([#35](https://github.com/openintegrations/python-sdk/issues/35)) ([1c5878e](https://github.com/openintegrations/python-sdk/commit/1c5878e5c33c595a0307eae443bea025bb7c9fdd))
41+
42+
43+
### Chores
44+
45+
* configure new SDK language ([8c5b8c0](https://github.com/openintegrations/python-sdk/commit/8c5b8c098e02ffcec4af1c39b314a9177d3ca8dd))
46+
* configure new SDK language ([33af5c1](https://github.com/openintegrations/python-sdk/commit/33af5c174cae2c72e3460267cd7f0221e94a7f9d))
47+
* go live ([#1](https://github.com/openintegrations/python-sdk/issues/1)) ([23281f8](https://github.com/openintegrations/python-sdk/commit/23281f821c95e8c4ca40f030916a0ced6c59092d))
48+
* **internal:** bump rye to 0.44.0 ([#34](https://github.com/openintegrations/python-sdk/issues/34)) ([570fe3a](https://github.com/openintegrations/python-sdk/commit/570fe3a9323e5c9f51306e82e4ccbde02fc86aaa))
49+
* **internal:** codegen related update ([df6dad6](https://github.com/openintegrations/python-sdk/commit/df6dad620d6dc210a73d81998f090832babc06db))
50+
* **internal:** codegen related update ([2d08063](https://github.com/openintegrations/python-sdk/commit/2d0806324412bb8c471c20c3ad93204326335388))
51+
* **internal:** codegen related update ([#32](https://github.com/openintegrations/python-sdk/issues/32)) ([efb587f](https://github.com/openintegrations/python-sdk/commit/efb587f600fca2c05d8edb4a792d9baabcc07ec4))
52+
* **internal:** remove extra empty newlines ([#30](https://github.com/openintegrations/python-sdk/issues/30)) ([5d7bfbb](https://github.com/openintegrations/python-sdk/commit/5d7bfbb11557c7e1ca3e1e45fe105f565f6a041b))
53+
* **internal:** remove unused http client options forwarding ([5e063e4](https://github.com/openintegrations/python-sdk/commit/5e063e41489414b8843879903f0ccf07e1fa2e7e))
54+
* update SDK settings ([8018ccc](https://github.com/openintegrations/python-sdk/commit/8018ccc608e80e5b690f2962dace74de825908e6))
55+
* update SDK settings ([#3](https://github.com/openintegrations/python-sdk/issues/3)) ([f14e8ec](https://github.com/openintegrations/python-sdk/commit/f14e8ec758033ba00469865d7e1387ceb7953473))
56+
357
## 0.1.0-alpha.4 (2025-03-14)
458

559
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/openintegrations/python-sdk/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)

bin/publish-pypi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ mkdir -p dist
55
rye build --clean
66
# Patching importlib-metadata version until upstream library version is updated
77
# https://github.com/pypa/twine/issues/977#issuecomment-2189800841
8+
"$HOME/.rye/self/bin/python3" -m ensurepip
89
"$HOME/.rye/self/bin/python3" -m pip install 'importlib-metadata==7.2.1'
910
rye publish --yes --token=$PYPI_TOKEN

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openint"
3-
version = "0.1.0-alpha.4"
3+
version = "0.1.0-alpha.5"
44
description = "The official Python library for the Openint API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

requirements-dev.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# all-features: true
88
# with-sources: false
99
# generate-hashes: false
10+
# universal: false
1011

1112
-e file:.
1213
annotated-types==0.6.0

requirements.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# all-features: true
88
# with-sources: false
99
# generate-hashes: false
10+
# universal: false
1011

1112
-e file:.
1213
annotated-types==0.6.0

src/openint/_models.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
from ._constants import RAW_RESPONSE_HEADER
6666

6767
if TYPE_CHECKING:
68-
from pydantic_core.core_schema import ModelField, LiteralSchema, ModelFieldsSchema
68+
from pydantic_core.core_schema import ModelField, ModelSchema, LiteralSchema, ModelFieldsSchema
6969

7070
__all__ = ["BaseModel", "GenericModel"]
7171

@@ -646,15 +646,18 @@ def _build_discriminated_union_meta(*, union: type, meta_annotations: tuple[Any,
646646

647647
def _extract_field_schema_pv2(model: type[BaseModel], field_name: str) -> ModelField | None:
648648
schema = model.__pydantic_core_schema__
649+
if schema["type"] == "definitions":
650+
schema = schema["schema"]
651+
649652
if schema["type"] != "model":
650653
return None
651654

655+
schema = cast("ModelSchema", schema)
652656
fields_schema = schema["schema"]
653657
if fields_schema["type"] != "model-fields":
654658
return None
655659

656660
fields_schema = cast("ModelFieldsSchema", fields_schema)
657-
658661
field = fields_schema["fields"].get(field_name)
659662
if not field:
660663
return None

0 commit comments

Comments
 (0)