Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from fern-api/main
Browse files Browse the repository at this point in the history
Fork Sync: Update from parent repository
  • Loading branch information
davidkonigsberg authored Jan 18, 2024
2 parents 99890e5 + 44209e9 commit 4914578
Show file tree
Hide file tree
Showing 112 changed files with 278 additions and 275 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<br/>
<div align="center">
<a href="https://www.buildwithfern.com/?utm_source=github&utm_medium=readme&utm_campaign=fern-typescript&utm_content=logo">
<img src="fern.png" height="120" align="center" alt="header" />
<img src="fern-logo.png" height="50" align="center" alt="header" />
</a>

<br/>
Expand Down
Binary file added fern-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed fern.png
Binary file not shown.
2 changes: 1 addition & 1 deletion seed/fastapi/api-wide-base-path/service/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.post.__globals__)

router.post(
path="/test/{path_param}/{service_param}/{endpoint_param}",
path="//test/{path_param}/{service_param}/{endpoint_param}",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractServiceService.post.__doc__,
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/audiences/folder_a/service/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> Response:
wrapper.__globals__.update(cls.get_direct_thread.__globals__)

router.get(
path="/",
path="",
response_model=Response,
description=AbstractFolderAServiceService.get_direct_thread.__doc__,
**get_route_args(cls.get_direct_thread, default_tag="folder_a.service"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/audiences/foo/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> ImportingType:
wrapper.__globals__.update(cls.find.__globals__)

router.post(
path="/",
path="",
response_model=ImportingType,
description=AbstractFooService.find.__doc__,
**get_route_args(cls.find, default_tag="foo"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.get_with_api_key.__globals__)

router.get(
path="//apiKey",
path="/apiKey",
response_model=str,
description=AbstractServiceService.get_with_api_key.__doc__,
**get_route_args(cls.get_with_api_key, default_tag="service"),
Expand Down
4 changes: 2 additions & 2 deletions seed/fastapi/basic-auth/basic_auth/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> bool:
wrapper.__globals__.update(cls.get_with_basic_auth.__globals__)

router.get(
path="//basic-auth",
path="/basic-auth",
response_model=bool,
description=AbstractBasicAuthService.get_with_basic_auth.__doc__,
**get_route_args(cls.get_with_basic_auth, default_tag="basic_auth"),
Expand Down Expand Up @@ -121,7 +121,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> bool:
wrapper.__globals__.update(cls.post_with_basic_auth.__globals__)

router.post(
path="//basic-auth",
path="/basic-auth",
response_model=bool,
description=AbstractBasicAuthService.post_with_basic_auth.__doc__,
**get_route_args(cls.post_with_basic_auth, default_tag="basic_auth"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.get_with_bearer_token.__globals__)

router.get(
path="//apiKey",
path="/apiKey",
response_model=str,
description=AbstractServiceService.get_with_bearer_token.__doc__,
**get_route_args(cls.get_with_bearer_token, default_tag="service"),
Expand Down
4 changes: 2 additions & 2 deletions seed/fastapi/custom-auth/custom_auth/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> bool:
wrapper.__globals__.update(cls.get_with_custom_auth.__globals__)

router.get(
path="//custom-auth",
path="/custom-auth",
response_model=bool,
description=AbstractCustomAuthService.get_with_custom_auth.__doc__,
**get_route_args(cls.get_with_custom_auth, default_tag="custom_auth"),
Expand Down Expand Up @@ -121,7 +121,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> bool:
wrapper.__globals__.update(cls.post_with_custom_auth.__globals__)

router.post(
path="//custom-auth",
path="/custom-auth",
response_model=bool,
description=AbstractCustomAuthService.post_with_custom_auth.__doc__,
**get_route_args(cls.post_with_custom_auth, default_tag="custom_auth"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/enum-query-params/svc/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.test.__globals__)

router.get(
path="//test",
path="/test",
response_model=str,
description=AbstractSvcService.test.__doc__,
**get_route_args(cls.test, default_tag="svc"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.throw_error.__globals__)

router.get(
path="//property-based-error",
path="/property-based-error",
response_model=str,
description=AbstractPropertyBasedErrorService.throw_error.__doc__,
**get_route_args(cls.throw_error, default_tag="property_based_error"),
Expand Down
4 changes: 2 additions & 2 deletions seed/fastapi/examples/health/service/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.check.__globals__)

router.get(
path="//check/{id}",
path="/check/{id}",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractHealthServiceService.check.__doc__,
Expand Down Expand Up @@ -111,7 +111,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> bool:
wrapper.__globals__.update(cls.ping.__globals__)

router.get(
path="//ping",
path="/ping",
response_model=bool,
description=AbstractHealthServiceService.ping.__doc__,
**get_route_args(cls.ping, default_tag="health.service"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/examples/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.echo.__globals__)

router.post(
path="/",
path="",
response_model=str,
description=AbstractRootService.echo.__doc__,
**get_route_args(cls.echo, default_tag=""),
Expand Down
6 changes: 3 additions & 3 deletions seed/fastapi/examples/service/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> Movie:
wrapper.__globals__.update(cls.get_movie.__globals__)

router.get(
path="//movie/{movie_id}",
path="/movie/{movie_id}",
response_model=Movie,
description=AbstractServiceService.get_movie.__doc__,
**get_route_args(cls.get_movie, default_tag="service"),
Expand Down Expand Up @@ -120,7 +120,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> MovieId:
wrapper.__globals__.update(cls.create_movie.__globals__)

router.post(
path="//movie",
path="/movie",
response_model=MovieId,
description=AbstractServiceService.create_movie.__doc__,
**get_route_args(cls.create_movie, default_tag="service"),
Expand Down Expand Up @@ -160,7 +160,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> Metadata:
wrapper.__globals__.update(cls.get_metadata.__globals__)

router.get(
path="//metadata",
path="/metadata",
response_model=Metadata,
description=AbstractServiceService.get_metadata.__doc__,
**get_route_args(cls.get_metadata, default_tag="service"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/folders/a/b/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.foo.__globals__)

router.post(
path="/",
path="",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractABService.foo.__doc__,
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/folders/a/c/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.foo.__globals__)

router.post(
path="/",
path="",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractACService.foo.__doc__,
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/folders/folder/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.foo.__globals__)

router.post(
path="/",
path="",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractFolderService.foo.__doc__,
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/folders/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.foo.__globals__)

router.post(
path="/",
path="",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractRootService.foo.__doc__,
Expand Down
6 changes: 3 additions & 3 deletions seed/fastapi/literal/literal/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> CreateOptionsResponse:
wrapper.__globals__.update(cls.create_options.__globals__)

router.post(
path="//options",
path="/options",
response_model=CreateOptionsResponse,
description=AbstractLiteralService.create_options.__doc__,
**get_route_args(cls.create_options, default_tag="literal"),
Expand Down Expand Up @@ -117,7 +117,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> Options:
wrapper.__globals__.update(cls.get_options.__globals__)

router.post(
path="//options",
path="/options",
response_model=Options,
description=AbstractLiteralService.get_options.__doc__,
**get_route_args(cls.get_options, default_tag="literal"),
Expand Down Expand Up @@ -153,7 +153,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> UndiscriminatedOptions:
wrapper.__globals__.update(cls.get_undiscriminated_options.__globals__)

router.post(
path="//options",
path="/options",
response_model=UndiscriminatedOptions,
description=AbstractLiteralService.get_undiscriminated_options.__doc__,
**get_route_args(cls.get_undiscriminated_options, default_tag="literal"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/no-environment/dummy/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.get_dummy.__globals__)

router.get(
path="//dummy",
path="/dummy",
response_model=str,
description=AbstractDummyService.get_dummy.__doc__,
**get_route_args(cls.get_dummy, default_tag="dummy"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/optional/optional/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.send_optional_body.__globals__)

router.post(
path="//send-optional-body",
path="/send-optional-body",
response_model=str,
description=AbstractOptionalService.send_optional_body.__doc__,
**get_route_args(cls.send_optional_body, default_tag="optional"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/package-yml/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.echo.__globals__)

router.post(
path="/{id}/",
path="//{id}",
response_model=str,
description=AbstractRootService.echo.__doc__,
**get_route_args(cls.echo, default_tag=""),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/package-yml/service/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.nop.__globals__)

router.get(
path="/{id}//{nested_id}",
path="//{id}/{nested_id}",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractServiceService.nop.__doc__,
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/plain-text/service/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.get_text.__globals__)

router.post(
path="//text",
path="/text",
response_model=str,
description=AbstractServiceService.get_text.__doc__,
**get_route_args(cls.get_text, default_tag="service"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/reserved-keywords/package/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.test.__globals__)

router.post(
path="/",
path="",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractPackageService.test.__doc__,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.get_dummy.__globals__)

router.get(
path="//dummy",
path="/dummy",
response_model=str,
description=AbstractDummyService.get_dummy.__doc__,
**get_route_args(cls.get_dummy, default_tag="dummy"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> str:
wrapper.__globals__.update(cls.get_dummy.__globals__)

router.get(
path="//dummy",
path="/dummy",
response_model=str,
description=AbstractDummyService.get_dummy.__doc__,
**get_route_args(cls.get_dummy, default_tag="dummy"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/trace/v_2/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.test.__globals__)

router.get(
path="/",
path="",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractV2Service.test.__doc__,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> MyUnion:
wrapper.__globals__.update(cls.get.__globals__)

router.post(
path="/",
path="",
response_model=MyUnion,
description=AbstractUnionService.get.__doc__,
**get_route_args(cls.get, default_tag="union"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/unknown/unknown/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> typing.List[typing.Any]:
wrapper.__globals__.update(cls.post.__globals__)

router.post(
path="/",
path="",
response_model=typing.List[typing.Any],
description=AbstractUnknownService.post.__doc__,
**get_route_args(cls.post, default_tag="unknown"),
Expand Down
2 changes: 1 addition & 1 deletion seed/fastapi/variables/service/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def wrapper(*args: typing.Any, **kwargs: typing.Any) -> None:
wrapper.__globals__.update(cls.post.__globals__)

router.post(
path="//{endpoint_param}",
path="/{endpoint_param}",
response_model=None,
status_code=starlette.status.HTTP_204_NO_CONTENT,
description=AbstractServiceService.post.__doc__,
Expand Down
6 changes: 3 additions & 3 deletions seed/pydantic/alias/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions seed/pydantic/api-wide-base-path/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions seed/pydantic/audiences/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4914578

Please sign in to comment.