Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !11301
An error occurred while fetching the assigned milestone of the selected merge_request.

V4 Azure functions + few tweaks

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/lbaqovia/v4-azure-functions into master 3 years ago
  • Overview 0
  • Commits 11
  • Pipelines 0
  • Changes 83

Created by: Abrhm7786

Updated generator to V4 Azure functions by default. Also fixed a couple of issues which were preventing the function app from working. Removed "HTTP" prefix from the method type and removed leading forward slashes which were occurring in the path parameter. (This was addressed in earlier changes for "apiPath" parameter but they were also occurring in "path".)

PR checklist

  • Read the contribution guidelines.
  • Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community.
  • Run the following to build the project and update samples:
    ./mvnw clean package 
    ./bin/generate-samples.sh
    ./bin/utils/export_docs_generators.sh
    Commit all changed files. This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*. For Windows users, please run the script in Git BASH.
  • File the PR against the correct branch: master (5.3.0), 6.0.x
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
Compare
  • master (base)

and
  • latest version
    21dddef9
    11 commits, 2 years ago

83 files
+ 1766
- 8119

    Preferences

    File browser
    Compare changes
do‎cs‎
gener‎ators‎
csharp-netcor‎e-functions.md‎ +3 -0
genera‎tors.md‎ +1 -1
modules/openap‎i-generator/src‎
ma‎in‎
java/org/openapitoo‎ls/codegen/languages‎
CsharpNetcoreFunctio‎nsServerCodegen.java‎ +549 -49
CsharpNetcoreFunctions‎ServerCodegen.java.bak‎ +601 -0
reso‎urces‎
aspnetc‎ore/3.0‎
model.m‎ustache‎ +2 -0
csharp-netco‎re-functions‎
Ope‎nApi‎
TypeExtensi‎ons.mustache‎ +51 -0
libraries/‎httpclient‎
ApiClient‎.mustache‎ +0 -739
FileParamet‎er.mustache‎ +0 -54
RequestOpti‎ons.mustache‎ +0 -66
api.mu‎stache‎ +0 -724
model.m‎ustache‎ +0 -48
AbstractOpenAPI‎Schema.mustache‎ +0 -68
ApiClient‎.mustache‎ +0 -867
ApiExcepti‎on.mustache‎ +0 -60
ApiRespons‎e.mustache‎ +0 -158
AssemblyIn‎fo.mustache‎ +0 -40
ClientUtil‎s.mustache‎ +0 -239
Configurati‎on.mustache‎ +0 -574
ExceptionFac‎tory.mustache‎ +0 -14
GlobalConfigur‎ation.mustache‎ +0 -59
HttpMetho‎d.mustache‎ +0 -25
HttpSigningConfi‎guration.mustache‎ +0 -757
IApiAccess‎or.mustache‎ +0 -29
IAsynchronousC‎lient.mustache‎ +0 -92
IReadableConfig‎uration.mustache‎ +0 -114
ISynchronousC‎lient.mustache‎ +0 -85
JsonSubTypesT‎ests.mustache‎ +0 -125
Multimap‎.mustache‎ +0 -287
OpenAPIDateCon‎verter.mustache‎ +0 -21
Project.csp‎roj.mustache‎ +39 -0
Project.cspro‎j.mustache.bak‎ +36 -0
Project.nus‎pec.mustache‎ +20 -0
README.‎mustache‎ +13 -255
ReadOnlyDicti‎onary.mustache‎ +0 -137
RequestOpti‎ons.mustache‎ +0 -66
RetryConfigur‎ation.mustache‎ +0 -39
Solution‎.mustache‎ +20 -25
TestProjec‎t.mustache‎ +0 -36
WebRequestPathB‎uilder.mustache‎ +0 -44
api.mu‎stache‎ +0 -626
api_doc.‎mustache‎ +0 -134
api_test‎.mustache‎ +0 -73
appsettings.De‎velopment.json‎ +9 -0
appsetti‎ngs.json‎ +8 -0
appveyor‎.mustache‎ +0 -9
bodyParam‎.mustache‎ +1 -0
build.bat‎.mustache‎ +9 -0
build.sh‎.mustache‎ +8 -0
controlle‎r.mustache‎ +88 -0
enumClass‎.mustache‎ +19 -0
formParam‎.mustache‎ +1 -0
function‎.mustache‎ +13 -8
function.m‎ustache.bak‎ +33 -0
git_push.s‎h.mustache‎ +0 -58
giti‎gnore‎ +0 -0
headerPara‎m.mustache‎ +1 -0
host.json‎.mustache‎ +11 -0
listRetur‎n.mustache‎ +4 -0
local.settings‎.json.mustache‎ +7 -0
mapReturn‎.mustache‎ +4 -0
model.m‎ustache‎ +146 -33
modelAnyO‎f.mustache‎ +0 -227
modelEnum‎.mustache‎ +0 -30
modelGener‎ic.mustache‎ +0 -456
modelInnerE‎num.mustache‎ +0 -26
modelOneO‎f.mustache‎ +0 -264
model_doc‎.mustache‎ +0 -22
model_tes‎t.mustache‎ +0 -81
netcore_proj‎ect.mustache‎ +0 -44
netcore_testpr‎oject.mustache‎ +0 -20
nuspec.‎mustache‎ +0 -52
objectRetu‎rn.mustache‎ +4 -0
paramName‎.mustache‎ +1 -0
partial_hea‎der.mustache‎ +5 -9
project.‎mustache‎ +0 -12
queryPara‎m.mustache‎ +1 -0
tags.m‎ustache‎ +1 -0
typeConvert‎er.mustache‎ +33 -0
visibilit‎y.mustache‎ +0 -1
p‎hp‎
ObjectSerial‎izer.mustache‎ +9 -15
test/…/…/…/…/cshar‎p-netcore-functions‎
CsharpNetcoreFunctions‎ServerCodegenTest.java‎ +5 -5
samples/client/…/ph‎p/OpenAPIClient-php‎
l‎ib‎
ObjectSeri‎alizer.php‎ +9 -15
te‎sts‎
ObjectSerial‎izerTest.php‎ +1 -2
docs/generators/csharp-netcore-functions.md
+ 3
- 0
  • View file @ 21dddef9


---
title: Documentation for the csharp-netcore-functions Generator
---
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to [configuration docs](https://openapi-generator.tech/docs/configuration) for more details.
=======
## METADATA
@@ -14,6 +16,7 @@ title: Documentation for the csharp-netcore-functions Generator
## CONFIG OPTIONS
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to [configuration docs](https://openapi-generator.tech/docs/configuration) for more details.
>>>>>>> 4d371178a2f63a90aca7c35f6e5a25825f277cf3
| Option | Description | Values | Default |
| ------ | ----------- | ------ | ------- |
docs/generators.md
+ 1
- 1
  • View file @ 21dddef9


@@ -87,7 +87,7 @@ The following generators are available:
* [cpp-qt-qhttpengine-server](generators/cpp-qt-qhttpengine-server.md)
* [cpp-restbed-server](generators/cpp-restbed-server.md)
* [csharp-nancyfx](generators/csharp-nancyfx.md)
* [csharp-netcore-functions (beta)](generators/csharp-netcore-functions.md)
* [csharp-netcore-functions](generators/csharp-netcore-functions.md)
* [erlang-server](generators/erlang-server.md)
* [fsharp-functions (beta)](generators/fsharp-functions.md)
* [fsharp-giraffe-server (beta)](generators/fsharp-giraffe-server.md)
modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CsharpNetcoreFunctionsServerCodegen.java
+ 549
- 49
  • View file @ 21dddef9

Files with large changes are collapsed by default.

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CsharpNetcoreFunctionsServerCodegen.java.bak 0 → 100644
+ 601
- 0
  • View file @ 21dddef9

Files with large changes are collapsed by default.

modules/openapi-generator/src/main/resources/aspnetcore/3.0/model.mustache
+ 2
- 0
  • View file @ 21dddef9


@@ -40,11 +40,13 @@ namespace {{modelPackage}}
{{/complexType}}
{{/items}}
{{/items.isEnum}}
{{^items.isEnum}}
{{#isEnum}}
{{^complexType}}
{{>enumClass}}
{{/complexType}}
{{/isEnum}}
{{/items.isEnum}}
/// <summary>
/// {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}}
/// </summary>{{#description}}
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: github/fork/lbaqovia/v4-azure-functions

Menu

Explore Projects Groups Snippets