Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f72d990
Regens petstore with 1 new route with 3 verbs
spacether Oct 17, 2023
e14e75a
Stores path item parameters
spacether Oct 17, 2023
32d0ea5
Gens path item param in python
spacether Oct 17, 2023
c06a375
Adds missing init file in path item parameters folder
spacether Oct 18, 2023
a84e09d
Moves path item param generation beforeoperation generation
spacether Oct 18, 2023
731f519
Adds pathItemParameters as input in fromOperation
spacether Oct 18, 2023
36aa068
Adds pathItemParams to operation typeddicts
spacether Oct 18, 2023
50a0d39
Fixes path parameter schema types
spacether Oct 18, 2023
924236b
Uses enum in common param
spacether Oct 18, 2023
ba3e16a
Stores path item parameters in a list
spacether Oct 20, 2023
bcfa830
Adds code to use path item parameters in endpoints
spacether Oct 20, 2023
b602df5
Fixes templates
spacether Oct 20, 2023
539c6fd
Refactors parameter schema names, creates ParameterCollection to hold…
spacether Oct 20, 2023
624cd64
Removes queryParams
spacether Oct 20, 2023
c9f5ee9
Removes headerParams
spacether Oct 20, 2023
f6de99d
Removes cookieParams
spacether Oct 20, 2023
25e13f1
Replaces pathItemParameters with collection
spacether Oct 20, 2023
1425105
Removes pathItemPathParams
spacether Oct 20, 2023
42e08e8
Removes pathItemQueryParams
spacether Oct 20, 2023
0eb86f6
Removes pathItemHeaderParams
spacether Oct 20, 2023
8bcef0a
Removes pathItemCookieParams
spacether Oct 20, 2023
3bd0618
Samples regen
spacether Oct 20, 2023
c73b15e
Fixes bug where common parameter had incorrect path
spacether Oct 20, 2023
ca6b9e6
Adds python tests of 3 routes containing pathItem parameters, one whe…
spacether Oct 20, 2023
d57f4f3
Updates endpoint docs
spacether Oct 20, 2023
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
Prev Previous commit
Next Next commit
Adds missing init file in path item parameters folder
  • Loading branch information
spacether committed Oct 18, 2023
commit c06a3756207c220c9094f11dee328e148197eb7c
1 change: 1 addition & 0 deletions samples/client/petstore/python/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ src/petstore_api/paths/common_param_sub_dir/get/responses/__init__.py
src/petstore_api/paths/common_param_sub_dir/get/responses/response_200/__init__.py
src/petstore_api/paths/common_param_sub_dir/parameters/0/__init__.py
src/petstore_api/paths/common_param_sub_dir/parameters/0/schema.py
src/petstore_api/paths/common_param_sub_dir/parameters/__init__.py
src/petstore_api/paths/common_param_sub_dir/post/__init__.py
src/petstore_api/paths/common_param_sub_dir/post/header_parameters.py
src/petstore_api/paths/common_param_sub_dir/post/operation.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ private void generatePathItem(List<File> files, CodegenKey pathKey, CodegenPathI
}

if (pathItem.parameters != null) {
generateXs(files, jsonPath + "/parameters", CodegenConstants.JSON_PATH_LOCATION_TYPE.PARAMETERS, CodegenConstants.PARAMETERS, null, true);
int i = 0;
for (CodegenParameter param: pathItem.parameters) {
generateParameter(files, param, jsonPath + "/parameters/" + i);
Expand Down