Skip to content

Commit

Permalink
FIX : Optional[Dict[str, StrictStr]] instead of Dict[str, str]
Browse files Browse the repository at this point in the history
  • Loading branch information
juliecoust committed Jul 8, 2024
1 parent 68532b6 commit 00a5684
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 159 deletions.
242 changes: 104 additions & 138 deletions README.md

Large diffs are not rendered by default.

26 changes: 11 additions & 15 deletions docs/AuthentificationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

All URIs are relative to *https://ecotaxa.obs-vlfr.fr/api*

| Method | HTTP request | Description |
| ----------------------------------------- | --------------- | ----------- |
| [**login**](AuthentificationApi.md#login) | **POST** /login | Login |
Method | HTTP request | Description
------------- | ------------- | -------------
[**login**](AuthentificationApi.md#login) | **POST** /login | Login


# **login**
Expand Down Expand Up @@ -34,15 +34,11 @@ configuration = ecotaxa_py_client.Configuration(
with ecotaxa_py_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ecotaxa_py_client.AuthentificationApi(api_client)
login_req = ecotaxa_py_client.LoginReq(
password="test!",
username="[email protected]",
) # LoginReq |
login_req = ecotaxa_py_client.LoginReq() # LoginReq |

try:
# Login
api_response = api_instance.login(login_req)
os.environ["ACCESS_TOKEN"]=api_response
print("The response of AuthentificationApi->login:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -54,9 +50,9 @@ with ecotaxa_py_client.ApiClient(configuration) as api_client:
### Parameters


| Name | Type | Description | Notes |
| ------------- | --------------------------- | ----------- | ----- |
| **login_req** | [**LoginReq**](LoginReq.md) | |
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**login_req** | [**LoginReq**](LoginReq.md)| |

### Return type

Expand All @@ -73,10 +69,10 @@ No authorization required

### HTTP response details

| Status code | Description | Response headers |
| ----------- | ------------------- | ---------------- |
| **200** | Successful Response | - |
| **422** | Validation Error | - |
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Successful Response | - |
**422** | Validation Error | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

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


__version__ = "2.0.3"
__version__ = "2.0.4"

# import apis into sdk package
from ecotaxa_py_client.api.files_api import FilesApi
Expand Down
2 changes: 1 addition & 1 deletion ecotaxa_py_client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/2.0.3/python'
self.user_agent = 'OpenAPI-Generator/2.0.4/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
2 changes: 1 addition & 1 deletion ecotaxa_py_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.0.37\n"\
"SDK Package Version: 2.0.3".\
"SDK Package Version: 2.0.4".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion ecotaxa_py_client/models/project_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ProjectModel(BaseModel):
sample_free_cols: Optional[Dict[str, StrictStr]] = Field(default=None, description="Sample free columns.")
acquisition_free_cols: Optional[Dict[str, StrictStr]] = Field(default=None, description="Acquisition free columns.")
process_free_cols: Optional[Dict[str, StrictStr]] = Field(default=None, description="Process free columns.")
bodc_variables: Dict[str, Optional(str)] = Field(default=None, description="BODC quantities from columns. Only the 3 keys listed in example are valid.")
bodc_variables: Dict[str, str] = Field(default=None, description="BODC quantities from columns. Only the 3 keys listed in example are valid.")
init_classif_list: Optional[List[StrictInt]] = Field(default=None, description="Favorite taxa used in classification.")
managers: Optional[List[MinUserModel]] = Field(default=None, description="Managers of this project.")
annotators: Optional[List[MinUserModel]] = Field(default=None, description="Annotators of this project, if not manager.")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ecotaxa_py_client"
version = "2.0.3"
version = "2.0.4"
description = "EcoTaxa"
authors = ["OpenAPI Generator Community <[email protected]>"]
license = "NoLicense"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "ecotaxa_py_client"
VERSION = "2.0.3"
VERSION = "2.0.4"
PYTHON_REQUIRES = ">=3.7"
REQUIRES = [
"urllib3 >= 1.25.3, < 2.1.0",
Expand Down

0 comments on commit 00a5684

Please sign in to comment.