Skip to content

Commit

Permalink
build(core): Bump up core version. (#53)
Browse files Browse the repository at this point in the history
PR: #53
  • Loading branch information
OmarAlJarrah authored Feb 21, 2023
1 parent 64750d2 commit bcab6c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openworld/sdk/generator/client/templates/client.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class {{ classname }}:
return self.__api_client.call(
headers=headers,
method='{{ operation.method }}',
obj={% if 'body' in operation.snake_case_arguments %}body{% else %}None{% endif %},
body={% if 'body' in operation.snake_case_arguments %}body{% else %}None{% endif %},
response_models={{ operation.return_type.removeprefix('Union')}},
url=request_url
)
Expand Down
2 changes: 1 addition & 1 deletion openworld/sdk/generator/client/templates/setup.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ setup(
"License :: OSI Approved :: MIT License",
],
python_requires='>=3.8',
install_requires=['uri', 'furl', 'openworld-sdk-python-core', 'pydantic'],
install_requires=['uri', 'furl', 'openworld-sdk-python-core', 'pydantic', 'pydantic[email]'],
description='Open World {{ api }} SDK for Python',
long_description='Open World {{ api }} SDK for Python'
)
2 changes: 1 addition & 1 deletion openworld/sdk/generator/scripts/generate-models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ done; validate_arguments

# Generate SDK Models
cd models &&\
datamodel-codegen --input-file-type openapi --input $input_spec --use-schema-description --use-standard-collections --output ./models.py --collapse-root-models --custom-template-dir ./templates --use-field-description\
datamodel-codegen --input-file-type openapi --input $input_spec --use-schema-description --use-standard-collections --output ./model.py --collapse-root-models --custom-template-dir ./templates --use-field-description\
&& cd ..

0 comments on commit bcab6c9

Please sign in to comment.