Open thachnb85 opened 5 years ago
I'm using Dart 2.2.0, and try to generate Cloud Endpoints APIs
I got this error:
Unhandled exception: type 'int' is not a subtype of type 'String' #0 new JsonSchema.fromJson (package:discoveryapis_generator/src/generated_googleapis/discovery/v1.dart:511:7) #1 new JsonSchema.fromJson.<anonymous closure> (package:discoveryapis_generator/src/generated_googleapis/discovery/v1.dart:547:34) #2 mapMap.<anonymous closure> (package:discoveryapis_generator/src/generated_googleapis/src/clients.dart:915:26) #3 CastMap.forEach.<anonymous closure> (dart:_internal/cast.dart:286:8) #4 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.forEach (dart:collection/runtime/libcompact_hash.dart:367:8) #5 CastMap.forEach (dart:_internal/cast.dart:285:13) #6 mapMap (package:discoveryapis_generator/src/generated_googleapis/src/clients.dart:914:10) #7 new JsonSchema.fromJson (package:discoveryapis_generator/src/generated_googleapis/discovery/v1.dart:545:20) #8 new RestDescription.fromJson.<anonymous closure> (package:discoveryapis_generator/src/generated_googleapis/discovery/v1.dart:920:34) #9 mapMap.<anonymous closure> (package:discoveryapis_generator/src/generated_googleapis/src/clients.dart:915:26) #10 CastMap.forEach.<anonymous closure> (dart:_internal/cast.dart:286:8) #11 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.forEach (dart:collection/runtime/libcompact_hash.dart:367:8) #12 CastMap.forEach (dart:_internal/cast.dart:285:13) #13 mapMap (package:discoveryapis_generator/src/generated_googleapis/src/clients.dart:914:10) #14 new RestDescription.fromJson (package:discoveryapis_generator/src/generated_googleapis/discovery/v1.dart:918:17) #15 generateAllLibraries.<anonymous closure> (package:discoveryapis_generator/discoveryapis_generator.dart:55:16) #16 MappedIterator.moveNext (dart:_internal/iterable.dart:392:18) #17 new List.from (dart:core/runtime/libarray_patch.dart:45:19) #18 Iterable.toList (dart:core/iterable.dart:398:16) #19 generateAllLibraries (package:discoveryapis_generator/discoveryapis_generator.dart:57:6) #20 main (file:///Users/user/.pub-cache/hosted/pub.dartlang.org/discoveryapis_generator-0.9.11/bin/generate.dart:112:20) #21 _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:298:32) #22 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)`
More information about version:
Package discoveryapis_generator is currently active at version 0.9.11. Resolving dependencies... (2.6s) + analyzer 0.36.0 + args 1.5.1 + async 2.2.0 + charcode 1.1.2 + collection 1.14.11 + convert 2.1.1 + crypto 2.0.6 + dart_style 1.2.7 + discoveryapis_generator 0.9.11 + front_end 0.1.15 + glob 1.1.7 + http 0.12.0+2 + http_parser 3.1.3 + kernel 0.3.15 + meta 1.1.7 + package_config 1.0.5 + path 1.6.2 + pedantic 1.5.0 + pub_semver 1.4.2 + source_span 1.5.5 + string_scanner 1.0.4 + term_glyph 1.1.0 + typed_data 1.1.6 + watcher 0.9.7+10 + yaml 2.1.15 Precompiling executables... (9.3s) Precompiled discoveryapis_generator:generate. Installed executable discoveryapis_generator. Activated discoveryapis_generator 0.9.11. computername:discovery user$ dart --version Dart VM version: 2.2.0 (Tue Feb 26 15:04:32 2019 +0100) on "macos_x64"
Could you help to check? Thank you
I'm using Dart 2.2.0, and try to generate Cloud Endpoints APIs
I got this error:
More information about version:
Could you help to check? Thank you