Skip to content

Commit f76869e

Browse files
committed
updated license and added example
1 parent e1bea41 commit f76869e

File tree

9 files changed

+775
-17
lines changed

9 files changed

+775
-17
lines changed

openapi-generator-annotations/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,4 @@ Icon
164164
Network Trash Folder
165165
Temporary Items
166166
.apdisk
167+
.idea/
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
## 1.0.0
1+
## 0.0.2-dev
22

3-
- Initial version, created by Stagehand
3+
- Changed version to dev since this package is still in active development
4+
5+
## 0.0.1
6+
7+
- Initial version
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright 2017, Joseph Gibah. All rights reserved.
2+
Redistribution and use in source and binary forms, with or without
3+
modification, are permitted provided that the following conditions are
4+
met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above
9+
copyright notice, this list of conditions and the following
10+
disclaimer in the documentation and/or other materials provided
11+
with the distribution.
12+
* Neither the name of Google Inc. nor the names of its
13+
contributors may be used to endorse or promote products derived
14+
from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A library for Dart developers.
1+
Annotation library for dart/flutter implementation of openapi client code generation.
22

33
Created from templates made available by Stagehand under a BSD-style
44
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).
@@ -8,15 +8,17 @@ Created from templates made available by Stagehand under a BSD-style
88
A simple usage example:
99

1010
```dart
11-
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart';
12-
13-
main() {
14-
var awesome = new Awesome();
15-
}
11+
@Openapi(
12+
additionalProperties:
13+
AdditionalProperties(pubName: 'petstore_api', pubAuthor: 'Johnny dep'),
14+
inputSpecFile: 'example/openapi-spec.yaml',
15+
generatorName: 'dart-jaguar',
16+
outputDirectory: 'api/petstore_api')
17+
class Example extends OpenapiGeneratorConfig {}
1618
```
1719

1820
## Features and bugs
1921

2022
Please file feature requests and bugs at the [issue tracker][tracker].
2123

22-
[tracker]: http://example.com/issues/replaceme
24+
[tracker]: https://github.com/gibahjoe/openapi-generator-dart/issues
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart';
2+
3+
@Openapi(
4+
additionalProperties:
5+
AdditionalProperties(pubName: 'petstore_api', pubAuthor: 'Johnny dep'),
6+
inputSpecFile: 'example/openapi-spec.yaml',
7+
generatorName: 'dart-jaguar',
8+
outputDirectory: 'api/petstore_api')
9+
class Example extends OpenapiGeneratorConfig {}

0 commit comments

Comments
 (0)