added necessary insomnia enums and exports

This commit is contained in:
StormGear
2025-01-06 15:03:56 +00:00
parent d1e591675b
commit be7954ddd9
6 changed files with 41 additions and 1 deletions

View File

@ -141,7 +141,8 @@ enum CodegenLanguage {
enum ImportFormat {
curl("cURL"),
postman("Postman Collection v2.1");
postman("Postman Collection v2.1"),
insomia("Insomnia v4");
const ImportFormat(this.label);
final String label;

View File

@ -12,6 +12,7 @@ class Importer {
?.map((t) => (null, t))
.toList(),
ImportFormat.postman => PostmanIO().getHttpRequestModelList(content),
ImportFormat.insomia => InsomiaIO().getHttpRequestModelList(content),
};
}
}

View File

@ -1,2 +1,3 @@
export 'curl_io.dart';
export 'postman_io.dart';
export 'insomia_io.dart';

View File

@ -19,6 +19,8 @@ dependencies:
http_parser: ^4.0.2
postman:
path: ../postman
insomnia:
path: ../insomnia
seed: ^0.0.2
xml: ^6.3.0

29
packages/insomnia/.gitignore vendored Normal file
View 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/

View File

@ -0,0 +1,6 @@
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
errors:
invalid_annotation_target: ignore