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

2008 Коммитов

Автор SHA1 Сообщение Дата
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
Mark Probst d059b5f2b2 Keep separate primitive string attributes in intersection accumulator 2018-03-15 08:36:59 -07:00
Mark Probst 7f29650d44 Make types of intersection members inferred for the resulting union 2018-03-15 08:20:47 -07:00
Mark Probst bc49adf53c Keep separate class and map attributes in intersection accumulator 2018-03-14 19:04:27 -07:00
Mark Probst c7897dc673 Keep separate array type attributes in intersection accumulator 2018-03-14 19:03:43 -07:00
Mark Probst b4802890aa Keep enum attributes separate in intersection accumulator 2018-03-14 17:57:22 -07:00
Mark Probst 2c3ccfcfba Properly handle enum in the presence of type 2018-03-14 15:51:27 -07:00
Mark Probst be4dbeeea8 Support non-specified required properties. Fixes #609 2018-03-14 15:11:45 -07:00
Mark Probst 408f3d0ce6 More correct JSON Schema input. Fixes #606 2018-03-14 15:11:39 -07:00
Mark Probst 2c044121a7 Fix type attribute propagation for intersections 2018-03-14 15:11:39 -07:00
Mark Probst 2a2d9860af If items is specified, but not type, still make an array. Fixes #639 2018-03-14 15:11:39 -07:00
Mark Probst 6f349ae74d Restore compatibility to API 2018-03-14 15:11:38 -07:00
Mark Probst 2d45201524 Resolve external refs in Schema. Fixes #522 2018-03-14 15:11:38 -07:00
Mark Probst d32f27b6da Include a modified version of urijs types
They reference the jquery types, which results in errors,
because we're not compiling for browsers.
2018-03-14 15:11:38 -07:00
Mark Probst 489542b700 Use urijs for URIs in refs 2018-03-14 15:11:38 -07:00
Mark Probst 3573003c75 Support for more generic refs 2018-03-14 15:11:38 -07:00
Mark Probst 26d1eef068
Merge pull request #672 from quicktype/fix-default-on-options
Invert boolean options that are on by default on CLI. Fixes #671
2018-03-14 15:00:06 -07:00
Mark Probst cc141ff2f6 Invert boolean options that are on by default on CLI. Fixes #671 2018-03-14 14:36:03 -07:00
Mark Probst 0c3cf1f406
Merge pull request #668 from quicktype/fix-rust-boolean
Trivial fix
2018-03-14 00:39:29 -07:00
Mark Probst f87767d594 Trivial fix 2018-03-13 23:15:01 -07:00
Mark Probst ed4b493714
Merge pull request #665 from waywardmonkeys/fix-whitespace-in-blank-doc-comment-lines
Remove whitespace at end of blank doc comment lines.
2018-03-13 18:26:53 -07:00
Bruce Mitchener c1229b7a67 Remove whitespace at end of blank doc comment lines.
Since `commentLineStart` had a space at the end of it, if the
line in the comment was blank, there would be a space at the end
of that blank line.

In Rust, this resulted in a bunch of lines modified by `rustfmt`,
so it would be nicer to just not generate that extra bit of
whitespace.
2018-03-13 21:24:00 +07:00