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:
parent
0d0d353b9d
commit
a5351f7ec0
@ -1,4 +1,4 @@
|
|||||||
part of api;
|
part of {{pubName}}.api;
|
||||||
|
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
part of api;
|
part of {{pubName}}.api;
|
||||||
|
|
||||||
class ApiException implements Exception {
|
class ApiException implements Exception {
|
||||||
int code = 0;
|
int code = 0;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
part of api;
|
part of {{pubName}}.api;
|
||||||
|
|
||||||
const _delimiters = const {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'};
|
const _delimiters = const {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'};
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
library api;
|
library {{pubName}}.api;
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:convert';{{#browserClient}}
|
import 'dart:convert';{{#browserClient}}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
part of api;
|
part of {{pubName}}.api;
|
||||||
|
|
||||||
{{#models}}{{#model}}
|
{{#models}}{{#model}}
|
||||||
@Entity()
|
@Entity()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user