Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💥✨ Regenerate cloudcontroller with up-to-date python (asyncio) openap…
…i generator (#114) * ✨ use default python generator from openapi-generator * 🎨 add isort step to generated output, and comment out patching * revise version tag * regenerate api and models with default python openapi-generator * ✨ new files generated with default python openapi-generator * 🎨 isort * 🎨 resolve todo's * ➕ add `python-dateutil` dependency * ➖✨ remove deprecated `uplink` dependency * ⬆️ bump pydantic to 2.4 * 🎨 rename imports in tests * 🔥✨ remove custom converters for deprecated library, and associated test * fix reference to pydantic ValidationError * 🎨 replace .dict with .modul_dump * 🎨 replace uplink.AiohttpClient with httpx.AsyncClient * 🎨 * ➕ add `httpx` dependency * ➕ add `urllib3` dependency * ➕ add `isort` dependency * 🎨 isort * 🎨 black formatting * 🎨 correct pydantic v2 dump_json todo fix * ➕ add autoflake dependency * 🎨 remove unused imports with autoflake, and add steps to script to postprocess generated client with autoflake, black, and isort * 🎨 remove extra_service_params * set library to `asyncio` in additionalProperties * ✨ regenerate client with `--library asyncio` * 🎨 add missing imports * ✨ extend ApiClient, configure base_url + api_key, and initialize API modules * 🎨 add AcaPyClient to imports * 🎨 add admin_insecure flag again, and raise exception if api_key is missing * 🔥 * ✅ update tests for models that now expect StrictBool for input * ⬆️ update `black` to 3.9 * ⬆️ bump `anyio` * ⬆️ update `typing-extensions` to 4.8 * ➖ remove httpx dependency * Update lint job * update python image to 3.9 * 🎨 add isort to linting job * version bump * add custom models for WalletRecordWithGroups and WalletListWithGroups * 🎨 add implementation for get wallets with a group_id, to remove the overriding of this Api module in CloudApi * version bump * fix incorrect max value (was -1, should be 18446744073709551615) * fix deprecation warning * version bump * 🎨 add method to convert boolean query parameters to their string equivalents before http request is sent * version bump * 🎨 move custom boolean conversion to `sanitize_for_serialization` method * version bump * 🎨 remove inheritance of ApiClient and configure instance separately * version bump * 0.9.0-beta1 * 🎨 update url * 🎨 re-add async context management * 0.9.0-beta2 * 🎨 configure base_url in configuration before instantiating ApiClient - avoids shared state with multiple AcaPyClients! * 🎨 modify DID to have enums for select fields * ✅ write tests to assert changes to DID model * 🎨 deduplicate regex patterns * 0.9.0-beta3 * 🎨 * 🎨 publish_rev_reg_def can return a `Union[RevRegResult, TxnOrRevRegResult]` * 0.9.0-beta4 * fix: var_json field in AttachDecoratorData can either be a dict, or a list of dict * ✅ create test for the custom type in ACA-Py requiring a manual change to AttachDecoratorData * only type "CL" is accepted for CredentialDefinition * ✅ write tests to assert that only type "CL" is accepted for CredentialDefinition * fix: context and issuer fields in Credential can either be a str or a dict * fix: some fields in Filter schema are a "StrOrNumberField" - custom type defined in ACA-py * ✅ write tests to assert manual changes to Filter model to accommodate custom type in ACA-Py * 🎨 services can be a str or a Dict * 🎨 fix: recipient_keys and service_endpoint are optional in ACA-Py 0.9.0. This is fixed and can be removed from 0.10.0 onwards * 🎨 modify `sanitize_for_serialization` to only cast query_param bools to string * 0.9.0-beta5 * 🎨 Special handling for Union[RevRegResult, TxnOrRevRegResult] response from publish_rev_reg_def. Fixed and no longer necessary in ACA-Py 0.10.1 * 0.9.0-beta6 * 🎨 add imports for custom models: WalletListWithGroups and WalletRecordWithGroups * 0.9.0-beta7 * 🎨 remove strict model requirement for `doc` * 🎨 remove override that was used if doc is a BaseModel * 0.9.0-beta8 * 🎨 * 🎨 WalletListWithGroups should inherit from WalletList * 0.9.0-beta9 * 🎨 override `from_dict` method for our custom models: WalletRecordWithGroups and WalletListWithGroups * 0.9.0-beta10 * set version * update python version to 3.9.18 * 📄 Update contact info * 0.9.0-beta11 * 🎨 define DEFAULT_PYDANTIC_MODEL_CONFIG to deduplicate model config. Adds `defer_build: True` * 🎨 * 🎨 deduplicate * 🎨 set `validate_assignment` to False * 0.9.0-beta12 * 📌 pin anyio to >= 3.7.1, as fastapi doesn't support v4 yet * 🎨 * include fetching spec in generate-client.sh * 🎨 * rename config to template (env var to be filled by generate-client script) * 🎨 read ACA_PY_VERSION as input and set as env var to generate config from template * 🎨 unused import * config filled from template * updated spec * 🎨 move custom _WithGroups models to own files * 🎨 regenerate with postprocessing and ACA-Py versioning * 🎨 regenerate with postprocessing and ACA-Py versioning * 🎨 print version being generated * 🎨 define script for postprocessing the generated client * 🎨 moved custom models * 🎨 import * 🎨✨ additional postprocessing to modify faults in autogeneration * 🎨 re-add import of regex patterns * 0.9.0-beta13 * 🎨 define and re-use default_ssl_context * 🎨 Update description * ✨ revised 0.9.0 release * 🎨 Update README with simplified steps * 🎨 Update README
- Loading branch information