glideapps/quicktype

Closing quicktype's stdout makes it output an error in some cases

Open

#864 ouverte le 21 mai 2018

Voir sur GitHub
 (0 commentaires) (1 réaction) (0 assignés)TypeScript (968 forks)batch import
CLIgood first issue

Métriques du dépôt

Stars
 (10 867 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Marks-iMac:quicktype schani$ ./script/quickesttype --src-lang schema --lang swift --just-types ./test/inputs/schema/vega-lite.schema   | head -n 4
import Foundation

struct VegaLite {
    /// URL to [JSON schema](http://json-schema.org/) for a Vega-Lite specification. Unless you

Issue in line 1390: quicktype cannot infer this type because there is no data about it in the input.
1390:     let on: Any?

Issue in line 1537: quicktype cannot infer this type because there is no data about it in the input.
1537:     let on: Any?

Issue in line 1585: quicktype cannot infer this type because there is no data about it in the input.
1585:     let on: Any?

Issue in line 4583: quicktype cannot infer this type because there is no data about it in the input.
4583:     let on: Any?
events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at exports._errnoException (util.js:1024:11)
    at WriteWrap.afterWrite [as oncomplete] (net.js:851:14)
Marks-iMac:quicktype schani$ ./script/quickesttype --lang swift --just-types ./test/inputs/json/samples/pokedex.json   | head -n 4
import Foundation

struct Pokedex {
    let pokemon: [Pokemon]
Marks-iMac:quicktype schani$ ./script/quickesttype --quiet --src-lang schema --lang swift --just-types ./test/inputs/schema/vega-lite.schema   | head -n 4
import Foundation

struct VegaLite {
    /// URL to [JSON schema](http://json-schema.org/) for a Vega-Lite specification. Unless you
events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at exports._errnoException (util.js:1024:11)
    at WriteWrap.afterWrite [as oncomplete] (net.js:851:14)

Guide contributeur