Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

v3 fix operation overloads #176

Merged
merged 39 commits into from
May 29, 2023
Merged

v3 fix operation overloads #176

merged 39 commits into from
May 29, 2023

Conversation

spacether
Copy link
Contributor

@spacether spacether commented May 24, 2023

  • v3 fix operation overloads
    • vscode had an error saying that operation overloads were not written correctly, this fixes that error
  • makes path/query/header/cookie params required if they contain a required parameter
  • adds typed generics to schema __new__ signatures

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/python*.
    For Windows users, please run the script in Git BASH.

spacether added 30 commits May 24, 2023 13:03
@spacether spacether merged commit e6bf84a into 3_0_0 May 29, 2023
@spacether spacether deleted the v3_fix_operation_overloads branch May 29, 2023 18:27
spacether added a commit that referenced this pull request May 31, 2023
* Fixes SerializedRequestBody['fields'] type

* Updates ApiCLient fields type

* Fixes fields type, moves RequestField into rest, fixes _get_headers

* Fixes _get_used_path

* Updates x_params to default to None

* When x_params are required, none is not an allowed value

* Moves required x_params earlier than optional ones

* tweaks skip_deserilization

* Adds new template for required variables

* Updated templates

* Simplifies operation overloads

* Reorders required and optional parameters

* Writes content_type on one line if there is only one

* Adds generic types to request bodies

* Adds generic types to request bodies

* Fixes test_fake_api errors

* Fixes inputs to RequestField

* FIxes new signature for arays, adds newlines

* Updates required properties to use newlines

* Adds newlines to new optional properties

* Uses newlines in additionalProperties new signature

* Moves array with usages higher

* Adds new arry ref generic types

* Adds array generics in new

* Input arg in new for more than one type uses newline

* Adds newline to new anytype types

* Adds parameterization to reuired ref properties in schema new

* Adds required prop generic types when from properties

* Adds required prop from additional prop generic types

* Adds helper for new property type hints

* Adds AnyTypeSchema parameterization

* Adds new ref generic helper

* Adds new optional property ref generic types

* Adds kwarg generics when set

* Changes new list/tuple input into sequence

* Adds newlines to kwargs in new signature

* Adds typing.Sequence for ListSchema inputs

* Tweaks operation type hint, sets ApiResponseWithoutDeserialization body + headers always as unset

* Regenerates samples
spacether added a commit that referenced this pull request Jun 8, 2023
* Fixes SerializedRequestBody['fields'] type

* Updates ApiCLient fields type

* Fixes fields type, moves RequestField into rest, fixes _get_headers

* Fixes _get_used_path

* Updates x_params to default to None

* When x_params are required, none is not an allowed value

* Moves required x_params earlier than optional ones

* tweaks skip_deserilization

* Adds new template for required variables

* Updated templates

* Simplifies operation overloads

* Reorders required and optional parameters

* Writes content_type on one line if there is only one

* Adds generic types to request bodies

* Adds generic types to request bodies

* Fixes test_fake_api errors

* Fixes inputs to RequestField

* FIxes new signature for arays, adds newlines

* Updates required properties to use newlines

* Adds newlines to new optional properties

* Uses newlines in additionalProperties new signature

* Moves array with usages higher

* Adds new arry ref generic types

* Adds array generics in new

* Input arg in new for more than one type uses newline

* Adds newline to new anytype types

* Adds parameterization to reuired ref properties in schema new

* Adds required prop generic types when from properties

* Adds required prop from additional prop generic types

* Adds helper for new property type hints

* Adds AnyTypeSchema parameterization

* Adds new ref generic helper

* Adds new optional property ref generic types

* Adds kwarg generics when set

* Changes new list/tuple input into sequence

* Adds newlines to kwargs in new signature

* Adds typing.Sequence for ListSchema inputs

* Tweaks operation type hint, sets ApiResponseWithoutDeserialization body + headers always as unset

* Regenerates samples
spacether added a commit that referenced this pull request Aug 16, 2023
* Fixes SerializedRequestBody['fields'] type

* Updates ApiCLient fields type

* Fixes fields type, moves RequestField into rest, fixes _get_headers

* Fixes _get_used_path

* Updates x_params to default to None

* When x_params are required, none is not an allowed value

* Moves required x_params earlier than optional ones

* tweaks skip_deserilization

* Adds new template for required variables

* Updated templates

* Simplifies operation overloads

* Reorders required and optional parameters

* Writes content_type on one line if there is only one

* Adds generic types to request bodies

* Adds generic types to request bodies

* Fixes test_fake_api errors

* Fixes inputs to RequestField

* FIxes new signature for arays, adds newlines

* Updates required properties to use newlines

* Adds newlines to new optional properties

* Uses newlines in additionalProperties new signature

* Moves array with usages higher

* Adds new arry ref generic types

* Adds array generics in new

* Input arg in new for more than one type uses newline

* Adds newline to new anytype types

* Adds parameterization to reuired ref properties in schema new

* Adds required prop generic types when from properties

* Adds required prop from additional prop generic types

* Adds helper for new property type hints

* Adds AnyTypeSchema parameterization

* Adds new ref generic helper

* Adds new optional property ref generic types

* Adds kwarg generics when set

* Changes new list/tuple input into sequence

* Adds newlines to kwargs in new signature

* Adds typing.Sequence for ListSchema inputs

* Tweaks operation type hint, sets ApiResponseWithoutDeserialization body + headers always as unset

* Regenerates samples
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant