Skip to content

Commit

Permalink
Merge pull request #73 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-python after onfido-openapi-spec update (2998dd3)
  • Loading branch information
dvacca-onfido authored Oct 23, 2024
2 parents 88f5e00 + b7d21d1 commit 7c8cd8e
Show file tree
Hide file tree
Showing 60 changed files with 1,253 additions and 951 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
env:
POETRY_CACHE_DIR: ~/.cache/pypoetry-${{ matrix.python-version }}

Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude onfido
- name: Test with pytest
if: ${{ matrix.python-version == '3.11' &&
if: ${{ matrix.python-version == '3.12' &&
github.repository_owner == 'onfido' }}
run: |
poetry run pytest --show-capture=no
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.6.0
7.9.0
8 changes: 4 additions & 4 deletions .release.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
"short_sha": "10f8380",
"long_sha": "10f83806efa080edbf022ac48d5eeac90fbceb0c",
"version": ""
"short_sha": "2998dd3",
"long_sha": "2998dd3ad2db49a33e0ecf9b41c7cf873909ef0b",
"version": "v4.0.0"
},
"release": "v3.5.0"
"release": "v4.0.0"
}
31 changes: 31 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Migration Guide

## Upgrading from 3.x to 4.x

### Core Resources

- Applicants
- Replace broken `ConsentsBuilder` object with a list of `ApplicantConsentBuilder` ones
- Workflow Runs
- Rename `WorkflowRunSharedLink` object into `WorkflowRunLink`
- Define `WorkflowRunStatus` enum for storing status information
- Rename `WorkflowRunResponseError` object into `WorkflowRunError`
- Documents
- Reuse already existent `DocumentTypes` enum when uploading documents

### Other Endpoints

- Webhooks
- Define `WebhookEventObjectStatus` enum to collect webhook event object's status
- Define `WebhookEventResourceType` enum to collect webhhok event resource's type
- Define `WebhookEventPayloadResource` object to store webhook payload's contents
- Checks
- Define `CheckStatus` enum for accessing checks status
- Reports
- Remove properties from `DeviceIntelligenceBreakdownPropertiesDevice` object: `true_os`, `os_anomaly`, `rooted` and `remote_software`
- Remove properties from `DeviceIntelligenceBreakdownPropertiesIp` object: `vpn_detection`, `proxy_detection` and `type`

### OpenAPI generator

- Version upgraded from 7.6.0 to 7.9.0
- Remove support for python 3.7
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Retain from using `additional_properties` dictionary to access not defined prope

## Contributing

This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.6.0); therefore all the contributions, except tests files, should target [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository.
This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.9.0); therefore all the contributions, except tests files, should target [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository.

For contributions to the tests instead, please follow the steps below:

Expand Down
2 changes: 1 addition & 1 deletion onfido/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""" # noqa: E501


__version__ = "3.5.0"
__version__ = "4.0.0"

# import apis into sdk package
from onfido.api.default_api import DefaultApi
Expand Down
Loading

0 comments on commit 7c8cd8e

Please sign in to comment.