Skip to content

Commit 60e6371

Browse files
authored
fix class hardcode to pet (#3014)
1 parent 50878fb commit 60e6371

26 files changed

Lines changed: 26 additions & 26 deletions

File tree

modules/openapi-generator/src/main/resources/dart-jaguar/model_test.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:test/test.dart';
55

66
// tests for {{classname}}
77
void main() {
8-
var instance = new Pet();
8+
var instance = new {{classname}}();
99

1010
group('test {{classname}}', () {
1111
{{#vars}}

modules/openapi-generator/src/main/resources/dart/model_test.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:test/test.dart';
55

66
// tests for {{classname}}
77
void main() {
8-
var instance = new Pet();
8+
var instance = new {{classname}}();
99

1010
group('test {{classname}}', () {
1111
{{#vars}}

samples/client/petstore/dart-jaguar/flutter_petstore/openapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is a sample server Petstore server. For this sample, you can use the api ke
44
This Dart package is automatically generated by the [Open API Codegen](https://github.com/OpenAPITools/openapi-generator) project:
55

66
- API version: 1.0.0
7-
- Build date: 2019-05-27T15:39:26.158+08:00[Asia/Hong_Kong]
7+
- Build date: 2019-05-27T21:20:43.835+08:00[Asia/Hong_Kong]
88
- Build package: org.openapitools.codegen.languages.DartJaguarClientCodegen
99

1010
## Requirements

samples/client/petstore/dart-jaguar/flutter_proto_petstore/openapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is a sample server Petstore server. For this sample, you can use the api ke
44
This Dart package is automatically generated by the [Open API Codegen](https://github.com/OpenAPITools/openapi-generator) project:
55

66
- API version: 1.0.0
7-
- Build date: 2019-05-27T15:39:27.745+08:00[Asia/Hong_Kong]
7+
- Build date: 2019-05-27T21:20:45.456+08:00[Asia/Hong_Kong]
88
- Build package: org.openapitools.codegen.languages.DartJaguarClientCodegen
99

1010
## Requirements

samples/client/petstore/dart-jaguar/openapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is a sample server Petstore server. For this sample, you can use the api ke
44
This Dart package is automatically generated by the [Open API Codegen](https://github.com/OpenAPITools/openapi-generator) project:
55

66
- API version: 1.0.0
7-
- Build date: 2019-05-27T15:39:24.552+08:00[Asia/Hong_Kong]
7+
- Build date: 2019-05-27T21:20:42.193+08:00[Asia/Hong_Kong]
88
- Build package: org.openapitools.codegen.languages.DartJaguarClientCodegen
99

1010
## Requirements

samples/client/petstore/dart-jaguar/openapi/test/api_response_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:test/test.dart';
33

44
// tests for ApiResponse
55
void main() {
6-
var instance = new Pet();
6+
var instance = new ApiResponse();
77

88
group('test ApiResponse', () {
99
// int code (default value: null)

samples/client/petstore/dart-jaguar/openapi/test/category_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:test/test.dart';
33

44
// tests for Category
55
void main() {
6-
var instance = new Pet();
6+
var instance = new Category();
77

88
group('test Category', () {
99
// int id (default value: null)

samples/client/petstore/dart-jaguar/openapi/test/order_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:test/test.dart';
33

44
// tests for Order
55
void main() {
6-
var instance = new Pet();
6+
var instance = new Order();
77

88
group('test Order', () {
99
// int id (default value: null)

samples/client/petstore/dart-jaguar/openapi/test/tag_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:test/test.dart';
33

44
// tests for Tag
55
void main() {
6-
var instance = new Pet();
6+
var instance = new Tag();
77

88
group('test Tag', () {
99
// int id (default value: null)

samples/client/petstore/dart-jaguar/openapi/test/user_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:test/test.dart';
33

44
// tests for User
55
void main() {
6-
var instance = new Pet();
6+
var instance = new User();
77

88
group('test User', () {
99
// int id (default value: null)

0 commit comments

Comments
 (0)