-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #115
- Loading branch information
Showing
4 changed files
with
168 additions
and
0 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
54 changes: 54 additions & 0 deletions
54
openapi-generator/test/specs/issue/115/github_issue_#115.json
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,54 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "my-service", | ||
"version": "1.0" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "/my-service" | ||
} | ||
], | ||
"security": [ | ||
{ | ||
"Authorization": [] | ||
} | ||
], | ||
"paths": { | ||
"/api/v2/subscription/cancel": { | ||
"delete": { | ||
"tags": [ | ||
"subscription-v-2-controller" | ||
], | ||
"operationId": "cancelSubscription_2", | ||
"responses": { | ||
"200": { | ||
"description": "OK" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"WechatPayRedirectToAndroidApp": { | ||
"type": "object", | ||
"properties": { | ||
"timestamp": { | ||
"type": "string" | ||
}, | ||
"experts": { | ||
"uniqueItems": true, | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"package": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
openapi-generator/test/specs/issue/115/github_issue_115_dart_test_config.dart
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,16 @@ | ||
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart'; | ||
|
||
@Openapi( | ||
inputSpec: InputSpec( | ||
path: | ||
'./test/specs/issue/{{issueNumber}}/github_issue_#{{issueNumber}}.json', | ||
), | ||
updateAnnotatedFile: false, | ||
nameMappings: {'package_': 'otherPackage'}, | ||
additionalProperties: | ||
AdditionalProperties(pubName: 'salad_api_client', pubAuthor: 'Google'), | ||
generatorName: Generator.dart, | ||
cleanSubOutputDirectory: ['./test/specs/issue/{{issueNumber}}/output'], | ||
cachePath: './test/specs/issue/{{issueNumber}}/output/cache.json', | ||
outputDirectory: './test/specs/issue/{{issueNumber}}/output') | ||
class GithubIssue135 {} |
16 changes: 16 additions & 0 deletions
16
openapi-generator/test/specs/issue/115/github_issue_115_dio_test_config.dart
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,16 @@ | ||
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart'; | ||
|
||
@Openapi( | ||
inputSpec: InputSpec( | ||
path: | ||
'./test/specs/issue/{{issueNumber}}/github_issue_#{{issueNumber}}.json', | ||
), | ||
updateAnnotatedFile: false, | ||
nameMappings: {'package_': 'otherPackage'}, | ||
additionalProperties: | ||
AdditionalProperties(pubName: 'salad_api_client', pubAuthor: 'Google'), | ||
generatorName: Generator.dio, | ||
cleanSubOutputDirectory: ['./test/specs/issue/{{issueNumber}}/output'], | ||
cachePath: './test/specs/issue/{{issueNumber}}/output/cache.json', | ||
outputDirectory: './test/specs/issue/{{issueNumber}}/output') | ||
class GithubIssue135 {} |