fix #17258 - use model class only if it is generated (#17490)

* fix  #16797 and #15796 spring child constructor missing parent params

* root cause and update the DefaultCodegen.java to add missing property when with multi inheritance

* rollback SpringCodegen.java

* update samples

* rollback with master cause #16992 fixed this issue too

* still using orignal design

* catchup master

* catchup master

* catchup master

* fix

* add tests

---------

Co-authored-by: dabdirb <dabdirb@gmail.com>
This commit is contained in:
martin-mfg
2024-01-05 03:30:28 +01:00
committed by GitHub
parent 6317796cba
commit 64f2cad9e8
228 changed files with 10788 additions and 14 deletions

View File

@@ -314,6 +314,33 @@ public interface FakeApi extends ApiClient.Api {
/**
* test referenced additionalProperties
*
* @param requestBody request body (required)
*/
@RequestLine("POST /fake/additionalProperties-reference")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
void testAdditionalPropertiesReference(Map<String, Object> requestBody);
/**
* test referenced additionalProperties
* Similar to <code>testAdditionalPropertiesReference</code> but it also returns the http response headers .
*
* @param requestBody request body (required)
*/
@RequestLine("POST /fake/additionalProperties-reference")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse<Void> testAdditionalPropertiesReferenceWithHttpInfo(Map<String, Object> requestBody);
/**
*
* For this test, the body has to be a binary file.