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:
Christian Loitsch 2016-07-12 18:05:40 +02:00
parent 0d0d353b9d
commit a5351f7ec0
5 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
part of api; part of {{pubName}}.api;
{{#operations}} {{#operations}}

View File

@ -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;

View File

@ -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': '|'};

View File

@ -1,4 +1,4 @@
library api; library {{pubName}}.api;
import 'dart:async'; import 'dart:async';
import 'dart:convert';{{#browserClient}} import 'dart:convert';{{#browserClient}}

View File

@ -1,4 +1,4 @@
part of api; part of {{pubName}}.api;
{{#models}}{{#model}} {{#models}}{{#model}}
@Entity() @Entity()