forked from loafle/openapi-generator-original
feat dart: add pubName to library name.
Otherwise projects may not use different apis generated by swagger, because library names must be unique.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
part of api;
|
||||
part of {{pubName}}.api;
|
||||
|
||||
{{#operations}}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
part of api;
|
||||
part of {{pubName}}.api;
|
||||
|
||||
class ApiException implements Exception {
|
||||
int code = 0;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
part of api;
|
||||
part of {{pubName}}.api;
|
||||
|
||||
const _delimiters = const {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'};
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
library api;
|
||||
library {{pubName}}.api;
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:convert';{{#browserClient}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
part of api;
|
||||
part of {{pubName}}.api;
|
||||
|
||||
{{#models}}{{#model}}
|
||||
@Entity()
|
||||
|
||||
Reference in New Issue
Block a user