-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api spec rework #213
Merged
Merged
Api spec rework #213
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
381316d
Running the autogenerator
brandon-groundlight 10cdfeb
reworking
brandon-groundlight 3685454
reworking
brandon-groundlight 395f0cb
bugfix
brandon-groundlight 20fba4d
I love autogenerators, but slightly less of a fan of datamodel-code-g…
brandon-groundlight d2e564b
regenerating after updating datamodel-codgen
brandon-groundlight 1788f7e
bugfix, None is basically null, but "" is not
brandon-groundlight 44708f2
Automatically reformatting code
aa9bce5
Utilize latest spec for result types
brandon-groundlight 74e8e37
fixing api spec around notes
brandon-groundlight 939b625
Merge branch 'api_spec_rework' of github.com:groundlight/python-sdk i…
brandon-groundlight 8af5530
Automatically reformatting code
03d7d82
update comment
brandon-groundlight eafae6c
Merge branch 'main' into api_spec_rework
brandon-groundlight cc5ac38
incorporating suggestions
brandon-groundlight 2a7bcb4
updating operation ids one more time
brandon-groundlight File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# ActionRequest | ||
|
||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**channel** | [**ChannelEnum**](ChannelEnum.md) | | | ||
**recipient** | **str** | | | ||
**include_image** | **bool** | | | ||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does --strict-nullable do? For less obvious flags its helpful to comment them or link to their documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let me add a comment in the file itself, but the useful discussion is here. For properties in the api spec that have
nullable: true
the generated pydantic class should let that property be Optional. For strange reasons, you need to set --strict-nullable for this to be true.