Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate client code from OpenAPI specification (opensearch-project#366)
* OpenAPI generator from scratch Signed-off-by: Thomas Farr <[email protected]> * Write to files and generate object shapes Signed-off-by: Thomas Farr <[email protected]> * Output response shapes and enum shapes Signed-off-by: Thomas Farr <[email protected]> * Fix builder setters for enums Signed-off-by: Thomas Farr <[email protected]> * Better handling of required fields Signed-off-by: Thomas Farr <[email protected]> * Unify templates for ObjectShape/OperationRequest Signed-off-by: Thomas Farr <[email protected]> * Simple http path expression Signed-off-by: Thomas Farr <[email protected]> * Generate client class Signed-off-by: Thomas Farr <[email protected]> * Cleanup Signed-off-by: Thomas Farr <[email protected]> * Generate namespaces remote store client Signed-off-by: Thomas Farr <[email protected]> * Add license header, improve http path builder, fix remote store spec Signed-off-by: Thomas Farr <[email protected]> * Suppress checkstyle unused imports lint for generated code Signed-off-by: Thomas Farr <[email protected]> * Centralize some naming Signed-off-by: Thomas Farr <[email protected]> * Allow renaming operations Signed-off-by: Thomas Farr <[email protected]> * Add generated warning header Signed-off-by: Thomas Farr <[email protected]> * Refactor Signed-off-by: Thomas Farr <[email protected]> * Less code more templates Signed-off-by: Thomas Farr <[email protected]> * Simplify http path part Signed-off-by: Thomas Farr <[email protected]> * Fixes Signed-off-by: Thomas Farr <[email protected]> * Swap to swagger-parser Signed-off-by: Thomas Farr <[email protected]> * Handle x-data-type & array response bodies Signed-off-by: Thomas Farr <[email protected]> * Handle multiple http paths for same operation Signed-off-by: Thomas Farr <[email protected]> * Improve type handling Signed-off-by: Thomas Farr <[email protected]> * Tweak package name determination Signed-off-by: Thomas Farr <[email protected]> * Handle additionalProperties on ErrorCause Signed-off-by: Thomas Farr <[email protected]> * Simplify enum shape Signed-off-by: Thomas Farr <[email protected]> * Change default number type Signed-off-by: Thomas Farr <[email protected]> * Generate parameter-less operation method when no required fields Signed-off-by: Thomas Farr <[email protected]> * Refactor to parse multi-file spec Signed-off-by: Thomas Farr <[email protected]> * spotlessApply Signed-off-by: Thomas Farr <[email protected]> * Use spotless to format code Signed-off-by: Thomas Farr <[email protected]> * Maintain spec location information Signed-off-by: Thomas Farr <[email protected]> * Refactor model transformation and type mapper Signed-off-by: Thomas Farr <[email protected]> * Match existing naming scheme Signed-off-by: Thomas Farr <[email protected]> * Change OperationGroup matching logic to determine which to generate Signed-off-by: Thomas Farr <[email protected]> * Better handle errors thrown by formatter Signed-off-by: Thomas Farr <[email protected]> * Add typedef comment Signed-off-by: Thomas Farr <[email protected]> * Support tagged union Signed-off-by: Thomas Farr <[email protected]> * Add additional reserved keywords Signed-off-by: Thomas Farr <[email protected]> * Improve parsing logic Signed-off-by: Thomas Farr <[email protected]> * Add basic tests and implement proper argument parsing Signed-off-by: Thomas Farr <[email protected]> * Improve tagged union generation and filter global query params Signed-off-by: Thomas Farr <[email protected]> * Change enum naming style Signed-off-by: Thomas Farr <[email protected]> * Handle Time type Signed-off-by: Thomas Farr <[email protected]> * Handle deprecation Signed-off-by: Thomas Farr <[email protected]> * Clear operations to generate Signed-off-by: Thomas Farr <[email protected]> * Change usages of `<stream>.toList()` to `<stream>.collect(Collectors.toList())` Signed-off-by: Thomas Farr <[email protected]> * Remove publishing from build.gradle Signed-off-by: Thomas Farr <[email protected]> * Cleaning up Signed-off-by: Thomas Farr <[email protected]> * spotless Signed-off-by: Thomas Farr <[email protected]> --------- Signed-off-by: Thomas Farr <[email protected]>
- Loading branch information