Skip to content

Commit

Permalink
Merge branch 'abap-openapi:main' into Bugfix-Returning-Typenames
Browse files Browse the repository at this point in the history
  • Loading branch information
OberstVonGatow authored Jan 11, 2024
2 parents 2f6986e + 2fd1878 commit 5a06bd9
Show file tree
Hide file tree
Showing 26 changed files with 228 additions and 225 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ jobs:
- run: npm install
- run: npm test
- run: npm run petstore
- run: git diff --exit-code
1 change: 1 addition & 0 deletions abaplint.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
"skipNames": []
},
"unused_variables": {
"skipAbstract": false,
"exclude": ["test_v2"]
},
"use_bool_expression": true,
Expand Down
168 changes: 84 additions & 84 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
},
"homepage": "https://github.com/abap-openapi/abap-openapi-client#readme",
"dependencies": {
"@abaplint/cli": "^2.102.17",
"@abaplint/runtime": "^2.7.70",
"@abaplint/transpiler-cli": "^2.7.70",
"rimraf": "^5.0.1"
"@abaplint/cli": "^2.102.51",
"@abaplint/runtime": "^2.7.101",
"@abaplint/transpiler-cli": "^2.7.101",
"rimraf": "^5.0.5"
}
}
8 changes: 4 additions & 4 deletions test_v1/generated/zcl_petstore.clas.abap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CLASS zcl_petstore DEFINITION PUBLIC.
* Generated by abap-openapi-client
* Swagger Petstore - OpenAPI 3.0, 1.0.11
* Swagger Petstore - OpenAPI 3.0, 1.0.17
PUBLIC SECTION.
INTERFACES zif_petstore.
METHODS constructor IMPORTING ii_client TYPE REF TO if_http_client.
Expand Down Expand Up @@ -36,7 +36,7 @@ CLASS zcl_petstore DEFINITION PUBLIC.
IMPORTING iv_prefix TYPE string
RETURNING VALUE(user) TYPE zif_petstore=>user
RAISING cx_static_check.
METHODS json_createuserswithlistinput
METHODS json_createuserswithlistinpu
IMPORTING data TYPE zif_petstore=>bodycreateuserswithlistinput
RETURNING VALUE(json) TYPE string
RAISING cx_static_check.
Expand Down Expand Up @@ -154,7 +154,7 @@ CLASS zcl_petstore IMPLEMENTATION.
order-complete = mo_json->value_boolean( iv_prefix && '/complete' ).
ENDMETHOD.

METHOD json_createuserswithlistinput.
METHOD json_createuserswithlistinpu.
json = json && '['.
* todo, array
json = json && ']'.
Expand Down Expand Up @@ -429,7 +429,7 @@ CLASS zcl_petstore IMPLEMENTATION.
DATA lv_uri TYPE string VALUE '/api/v3/user/createWithList'.
mi_client->request->set_method( 'POST' ).
mi_client->request->set_header_field( name = '~request_uri' value = lv_uri ).
mi_client->request->set_cdata( json_createuserswithlistinput( body ) ).
mi_client->request->set_cdata( json_createuserswithlistinpu( body ) ).
lv_code = send_receive( ).
WRITE / lv_code.
CASE lv_code.
Expand Down
Loading

0 comments on commit 5a06bd9

Please sign in to comment.