-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1587 from lnash94/master-528
[master] Remove `types.bal` generation from low level service
- Loading branch information
Showing
7 changed files
with
167 additions
and
9 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
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
11 changes: 11 additions & 0 deletions
11
openapi-cli/src/test/resources/expected_gen/without-data-binding.bal
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,11 @@ | ||
// AUTO-GENERATED FILE. | ||
// This file is auto-generated by the Ballerina OpenAPI tool. | ||
|
||
import ballerina/http; | ||
|
||
listener http:Listener ep0 = new (9090, config = {host: "localhost"}); | ||
|
||
service /v1 on ep0 { | ||
resource function get coupons/[string couponCode]/[int id]/[string limits](http:Caller caller, http:Request request) returns error? { | ||
} | ||
} |
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,76 @@ | ||
openapi: 3.0.1 | ||
info: | ||
title: V1 | ||
version: 0.1.0 | ||
servers: | ||
- url: "{server}:{port}/v1" | ||
variables: | ||
server: | ||
default: http://localhost | ||
port: | ||
default: "9090" | ||
paths: | ||
/coupons/{couponCode}/{id}/{limits}: | ||
get: | ||
operationId: getCoupon | ||
parameters: | ||
- $ref: '#/components/parameters/ngwCouponCodePathParam' | ||
- $ref: '#/components/parameters/ngwCouponCodePathParam02' | ||
- $ref: '#/components/parameters/ngwCouponCodePathParam03' | ||
responses: | ||
'200': | ||
description: Successful operation, coupon was found by requested code | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Cat' | ||
components: | ||
parameters: | ||
ngwCouponCodePathParam: | ||
in: path | ||
name: couponCode | ||
required: true | ||
schema: | ||
$ref: '#/components/schemas/Coupon' | ||
ngwCouponCodePathParam02: | ||
in: path | ||
name: id | ||
required: true | ||
schema: | ||
$ref: '#/components/schemas/Id' | ||
ngwCouponCodePathParam03: | ||
in: path | ||
name: limits | ||
required: true | ||
schema: | ||
type: array | ||
items: | ||
type: integer | ||
schemas: | ||
Coupon: | ||
type: string | ||
Id: | ||
$ref: '#/components/schemas/AddressNo' | ||
AddressNo: | ||
type: integer | ||
Pet: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
tag: | ||
type: string | ||
required: | ||
- name | ||
- tag | ||
Cat: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
parent: | ||
$ref: '#/components/schemas/Pet' | ||
petType: | ||
$ref: '#/components/schemas/Cat' | ||
required: | ||
- name |
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