-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENG-1067] Use Dataclasses in Python instead of TypedDict for return …
…values (#323) * save * docs(changeset): update description of pythonResponseType * _raw * implement pydantic response type * rename to python-pydantic-responses * generating pydantic files now TODO: fix pydantic models to make test pass * test working for pydantic responses * regenerate SDKs w/ updated generator * add type hint dependencies to pydantic file * python-pydantic-responses working * fix leap-workflows-sdks * regenerate all integration test SDKs * fix setup.py in Python SDK * regenerate e2e SDKs * fix duplicate key from license * fix duplicate key from license * rename configurations to pydantic in python-pydantic-responses test * add test_typed_dict_response * test works with class_ and two tags * fix handling of reserved word + multiple tags * handle prstv1 * regenerate e2e sdks * disable generation of pydantic classes if prstv1 * regenerate e2e SDKs run-it
- Loading branch information
Showing
135 changed files
with
2,439 additions
and
366 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'konfig-lib': minor | ||
--- | ||
|
||
update description of pythonResponseType |
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
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
25 changes: 25 additions & 0 deletions
25
...r/konfig-generator-api/src/main/java/org/openapitools/codegen/model/PythonDependency.java
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,25 @@ | ||
package org.openapitools.codegen.model; | ||
|
||
public class PythonDependency { | ||
String name; | ||
String version; | ||
String setupPyModifier; | ||
String poetryModifier; | ||
|
||
public PythonDependency(String name, String version, String setupPyModifier, String poetryModifier) { | ||
this.name = name; | ||
this.version = version; | ||
this.setupPyModifier = setupPyModifier; | ||
this.poetryModifier = poetryModifier; | ||
} | ||
|
||
// example: certifi = ">=2023.7.22" | ||
public String poetry() { | ||
return name + " = " + "\"" + poetryModifier + version + "\""; | ||
} | ||
|
||
// example: certifi = ">=2023.7.22" | ||
public String setupPy() { | ||
return "\"" + name + " " + setupPyModifier + " " + version + "\""; | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.