mirror of
https://github.com/foss42/apidash.git
synced 2025-05-29 12:59:58 +08:00
added necessary insomnia enums and exports
This commit is contained in:
@ -141,7 +141,8 @@ enum CodegenLanguage {
|
|||||||
|
|
||||||
enum ImportFormat {
|
enum ImportFormat {
|
||||||
curl("cURL"),
|
curl("cURL"),
|
||||||
postman("Postman Collection v2.1");
|
postman("Postman Collection v2.1"),
|
||||||
|
insomia("Insomnia v4");
|
||||||
|
|
||||||
const ImportFormat(this.label);
|
const ImportFormat(this.label);
|
||||||
final String label;
|
final String label;
|
||||||
|
@ -12,6 +12,7 @@ class Importer {
|
|||||||
?.map((t) => (null, t))
|
?.map((t) => (null, t))
|
||||||
.toList(),
|
.toList(),
|
||||||
ImportFormat.postman => PostmanIO().getHttpRequestModelList(content),
|
ImportFormat.postman => PostmanIO().getHttpRequestModelList(content),
|
||||||
|
ImportFormat.insomia => InsomiaIO().getHttpRequestModelList(content),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
export 'curl_io.dart';
|
export 'curl_io.dart';
|
||||||
export 'postman_io.dart';
|
export 'postman_io.dart';
|
||||||
|
export 'insomia_io.dart';
|
||||||
|
@ -19,6 +19,8 @@ dependencies:
|
|||||||
http_parser: ^4.0.2
|
http_parser: ^4.0.2
|
||||||
postman:
|
postman:
|
||||||
path: ../postman
|
path: ../postman
|
||||||
|
insomnia:
|
||||||
|
path: ../insomnia
|
||||||
seed: ^0.0.2
|
seed: ^0.0.2
|
||||||
xml: ^6.3.0
|
xml: ^6.3.0
|
||||||
|
|
||||||
|
29
packages/insomnia/.gitignore
vendored
Normal file
29
packages/insomnia/.gitignore
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Miscellaneous
|
||||||
|
*.class
|
||||||
|
*.log
|
||||||
|
*.pyc
|
||||||
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
.atom/
|
||||||
|
.buildlog/
|
||||||
|
.history
|
||||||
|
.svn/
|
||||||
|
migrate_working_dir/
|
||||||
|
|
||||||
|
# IntelliJ related
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# The .vscode folder contains launch configuration and tasks you configure in
|
||||||
|
# VS Code which you may wish to be included in version control, so this line
|
||||||
|
# is commented out by default.
|
||||||
|
#.vscode/
|
||||||
|
|
||||||
|
# Flutter/Dart/Pub related
|
||||||
|
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
|
||||||
|
/pubspec.lock
|
||||||
|
**/doc/api/
|
||||||
|
.dart_tool/
|
||||||
|
build/
|
6
packages/insomnia/analysis_options.yaml
Normal file
6
packages/insomnia/analysis_options.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
analyzer:
|
||||||
|
exclude:
|
||||||
|
- "**/*.g.dart"
|
||||||
|
- "**/*.freezed.dart"
|
||||||
|
errors:
|
||||||
|
invalid_annotation_target: ignore
|
Reference in New Issue
Block a user