Граф коммитов

1979 Коммитов

Автор SHA1 Сообщение Дата
David Siegel 750469d292 Track 'other' CI provider if env.CI is set 2018-03-21 12:15:16 -07:00
David Siegel c0b1831781 If running on CI, create a stable userId based on the project
This prevents proliferation of users in environments where ~/.quicktype is not cached
2018-03-21 12:15:16 -07:00
David Siegel 2b9f385dac
Merge pull request #691 from quicktype/telemetry-setup
Take care not to proceed when user is just setting telemetry
2018-03-21 11:53:56 -07:00
David Siegel 9697bd75bc Take care not to proceed when user is just setting telemetry 2018-03-21 09:16:42 -07:00
Mark Probst df7e9f3434
Merge pull request #690 from quicktype/cli-api
CLI API fixes
2018-03-21 09:12:44 -07:00
Mark Probst b39ebec6a4 Don't print an error if telemetry is not initialized 2018-03-21 07:42:26 -07:00
Mark Probst 8fe7025b35 Sensible default language in CLI API 2018-03-21 07:42:22 -07:00
David Siegel 54598cc420
Merge pull request #674 from quicktype/analytics
CLI Telemetry
2018-03-20 21:36:06 -07:00
David Siegel 119ae29c36 Add telemetry to CLI 2018-03-20 16:03:36 -07:00
David Siegel 2e2059c1fa Move cli code under src/cli 2018-03-20 11:21:41 -07:00
Mark Probst b890c57237
Merge pull request #686 from quicktype/export-more-renderers
Export all renderers
2018-03-20 09:57:56 -07:00
Mark Probst 6c4c68b254 Export all remaining renderers. Fixes #494 2018-03-20 08:58:34 -07:00
Mark Probst 9abcb9da9d
Merge pull request #689 from quicktype/swift-descriptions
Emit property descriptions in Swift normal density, too. Fixes #688
2018-03-20 08:47:10 -07:00
Mark Probst 87a1f26967 Emit property descriptions in Swift normal density, too. Fixes #688 2018-03-20 07:50:43 -07:00
Mark Probst 7af41b60ad TSLint fixes 2018-03-19 22:01:05 -07:00
Mark Probst 0f9797927d Export Swift renderer 2018-03-19 21:53:17 -07:00
Mark Probst c1434374ff Export C# renderers 2018-03-19 21:20:37 -07:00
David Siegel 0c966e07aa
Update package.lock to upgrade packages and clear some npm warnings (#685) 2018-03-19 13:31:39 -07:00
David Siegel 28f1c58ef4
Boolean options are named 'x' by default (#683)
...and get an automatic 'no-x' variant on the CLI
2018-03-18 20:12:48 -07:00
Mark Probst 021cc3840a
Merge pull request #682 from quicktype/cli-option-api
Improve CLI for API users
2018-03-18 13:34:38 -07:00
Mark Probst f511de549c Don't show --lang option in synopsis if there's less than 2 2018-03-18 13:20:10 -07:00
Mark Probst c8fd527008 Improve CLI for API users
Only show and process the target languages they select.
2018-03-18 13:08:24 -07:00
Mark Probst 48f88c5524
Merge pull request #675 from quicktype/fix-gather-names
Fix name gathering recursive blow up, and maybe improve names
2018-03-18 11:58:50 -07:00
Mark Probst 757e7bd1c3 When assigning names, prioritize given over inferred names 2018-03-18 08:44:00 -07:00
Mark Probst ef73aad603 Replace one instance of null for undefined 2018-03-18 08:44:00 -07:00
Mark Probst c890ff1242 Simplify 2018-03-18 08:44:00 -07:00
Mark Probst 7bacc0b190 Skip some X->Schema->X tests
It's not a bug that these fail, just a consequence about JSON Schema
output being less ambiguous about how to name types.
2018-03-18 08:44:00 -07:00
Mark Probst dfd59da3d2 Don't make definitions for unions that are nullables
This makes it more likely that X->Schema->X will succeed
for any given input.
2018-03-18 08:44:00 -07:00
Mark Probst 68b2a61627 Put the proper name, not the combinedName into title in Schema output
Also make separate definitions for enums and unions.
This makes X->Schema->X much more rubust to changes
in name gathering.
2018-03-18 08:44:00 -07:00
Mark Probst db3c7891aa quickertype isn't any quicker than quicktype 2018-03-18 08:44:00 -07:00
Mark Probst 42e5b60398 Fix name gathering recursive blow up, and maybe improve names 2018-03-18 08:44:00 -07:00
Mark Probst eff2b32621
Merge pull request #681 from quicktype/cli-option-api
Refactor CLI option parsing to make it externally accessible
2018-03-17 20:01:34 -07:00
Mark Probst 387837abf7 Refactor CLI option parsing to make it externally accessible 2018-03-17 19:33:11 -07:00
David Siegel 64051b18a1
Merge pull request #678 from quicktype/next
Publish to @next tag on npm and trigger next.quicktype.io
2018-03-17 18:25:12 -07:00
David Siegel 9d6d0afc94 Supercede the highest published version of any tag 2018-03-17 18:24:34 -07:00
David Siegel a156b6e350 Publish to @next tag on npm and trigger next.quicktype.io 2018-03-17 18:24:34 -07:00
David Siegel 2dc9e70a90
Merge pull request #679 from quicktype/urijs-types-from-github
Use our own urijs types from GitHub
2018-03-17 17:57:59 -07:00
Mark Probst cb79c470f9
Merge pull request #680 from quicktype/cleanup
Clean up uses of combineTypeAttributes
2018-03-17 15:05:57 -07:00
Mark Probst 63d9875f33 Clean up uses of combineTypeAttributes
We would often do `someSet.map(...).toArray()`.  This
produces an intermediate set, which is expensive
because it must ensure that it has no duplicate members.
The better way is to do `someSet.toArray().map(...)`.
2018-03-17 14:34:50 -07:00
Mark Probst f9c081bac4 Move JSONSchemaStore to its own file
That way a user of the quicktype package can import it
without also importing the @types/urijs.
2018-03-17 13:41:44 -07:00
Mark Probst b353a53ca2 Use our own urijs types from GitHub 2018-03-17 12:39:43 -07:00
Mark Probst 946467a718
Merge pull request #654 from quicktype/foreign-schema-refs
Foreign schema refs
2018-03-16 17:15:26 -07:00
David Siegel 255becf2f9 Treat types/urijs as a first-class npm package via file reference 2018-03-16 15:49:08 -07:00
Mark Probst 4f93e1bd48 Format a test 2018-03-16 10:32:59 -07:00
Mark Probst a47732bda9 Fix some more union type attribute stuff 2018-03-16 10:31:37 -07:00
Mark Probst c127280555 Fix type attributes for union flattening
In the case where a union within a union contained only
one type, that inner union's attributes wouldn't be
directly transferred to that type.  For example:

  Union[string, Union[A, A]]

The result should be

  Union[string, A]

and the inner union's type attributes should be directly
transferred, i.e. not made inferred, to A.
2018-03-16 08:26:01 -07:00
Mark Probst a8830c4443 CLI --debug option 2018-03-15 15:21:15 -07:00
Mark Probst f6fa99329b Nicer graph debug printing 2018-03-15 11:13:14 -07:00
Mark Probst eb86fadc9c Make combineTypeAttributes more convenient 2018-03-15 11:11:56 -07:00
Mark Probst 4cdee76a76 Keep separate primitive type attributes in intersection accumulator 2018-03-15 09:25:22 -07:00