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

1979 Коммитов

Автор SHA1 Сообщение Дата
David Siegel ae32fd9486
Merge pull request #721 from quicktype/typescript-input
TypeScript as a source language
2018-04-01 13:16:27 -05:00
David Siegel 68e6f8577d Add a TypeScript TypeSource (#727) 2018-04-01 12:50:14 -05:00
Mark Probst 43b66b5f0c TypeScript input test fixture 2018-04-01 09:27:04 -07:00
Mark Probst 99fe994c82 More forbidden global names for C# and TypeScript 2018-04-01 09:27:04 -07:00
Mark Probst 6378785901 Move TypeScript input out of CLI to quicktype core 2018-04-01 09:27:04 -07:00
Mark Probst 5703476522 TypeScript input from strings 2018-04-01 09:27:01 -07:00
Mark Probst 88d097500c Move a script 2018-04-01 09:27:01 -07:00
Mark Probst 6f6217b544 Move base64/inflate to Support.ts 2018-04-01 09:27:01 -07:00
David Siegel ad9743d895 TypeScript as a source language 2018-04-01 09:26:57 -07:00
Mark Probst ee4731951c
Merge pull request #725 from quicktype/rename-top-levels
Rename top-level types if absolutely necessary
2018-03-31 20:43:29 -07:00
Mark Probst b388e119df Rename top-level types if absolutely necessary
With the option of making all types in a schema top-levels ,
and the same thing with TypeScript input, the likelihood
that a type name will be illegal is quite high.
2018-03-31 20:23:07 -07:00
Mark Probst dbb5ada000
Merge pull request #723 from quicktype/fix-top-level-enum
Fix top level enum
2018-03-31 17:48:27 -07:00
Mark Probst 059b002358 Disable top-level enum test for Ruby 2018-03-31 17:47:40 -07:00
Mark Probst a4180b3744 Top-level enum "fix" for Swift 2018-03-31 17:08:59 -07:00
Mark Probst aae88a28f7 Add top-level enum test
Ironically we can't test it on C# because the driver assumes
the partial class exists.
2018-03-31 16:32:36 -07:00
Mark Probst b2f0059c59 Don't generate partial class for top-level enum. Fixes #722 2018-03-31 16:29:33 -07:00
Mark Probst 1853914ec4
Merge pull request #720 from quicktype/fix-objc-stack-overflow
Remove dead ObjC code.  Fixes #715
2018-03-31 06:59:28 -07:00
Mark Probst 971f422364 Remove dead ObjC code. Fixes #715 2018-03-30 23:04:38 -07:00
Mark Probst ac97c13573
Merge pull request #714 from quicktype/map-optional
mapOptional convenience function
2018-03-30 08:46:50 -07:00
Mark Probst 8818f56027 mapOptional convenience function 2018-03-30 08:12:21 -07:00
Mark Probst 4effed9218
Merge pull request #712 from quicktype/schema-fixes
Schema fixes
2018-03-29 11:14:00 -07:00
Mark Probst 0db36bf6ad Don't infer documentation, to avoid replication
We seem to be a bit too eager to add inferred type attributes.
This needs to be fixed, or naming goes haywire.
2018-03-29 10:51:19 -07:00
Mark Probst d8344ae671 Better groups for resolving intersections. Fixes #710 2018-03-29 10:51:15 -07:00
Mark Probst 0f4d3cf506 Unions that map to the same set of types should be in the same group 2018-03-29 10:08:29 -07:00
Mark Probst fe9f931ad6 Refactor 2018-03-29 09:52:25 -07:00
Mark Probst 42787bbeb9 Generalize 2018-03-29 09:40:15 -07:00
Mark Probst 51737eb68b Simplify 2018-03-29 08:58:15 -07:00
Mark Probst 7ce22fe2c9 Always have a root in absolute refs 2018-03-29 08:57:57 -07:00
Mark Probst d1a14554c9
Merge pull request #696 from quicktype/object-type
Full object type
2018-03-28 22:12:00 -07:00
Mark Probst a52396958b Make unification less correct but more precise
The properties `bar` and `quux` in `implicit-one-of.schema`
should technically have the type `any`, but that's not very
helpful.  Instead we ignore additional `any` properties
for defined properties.
2018-03-28 21:47:32 -07:00
Mark Probst deafc5f3ad New test case for the combined object type 2018-03-28 21:47:32 -07:00
Mark Probst 0933df6cff Keep object types throughout union and intersection processing 2018-03-28 21:47:32 -07:00
Mark Probst 0ead22e751 Generate object types in JSON Schema input 2018-03-28 21:47:28 -07:00
Mark Probst c055d62260 Full object type supertype for map and class types 2018-03-28 21:46:35 -07:00
Mark Probst e259a6f1a9 Remove dead code in MapType 2018-03-28 21:46:35 -07:00
Mark Probst c089cdafa1 Remove TypeGraphBuilder 2018-03-28 21:46:35 -07:00
Mark Probst 5edccc8b8f Make ClassType properly immutable
We don't need the late-set properties crutch anymore,
since we're better about forwarding refs, and the JSON
Schema input code always builds intersection types that
act as placeholders, so you never need a class directly
referring to itself.
2018-03-28 21:46:35 -07:00
David Siegel 227ca1d97f
Add JavaScript, Flow, Ruby to README 2018-03-27 22:02:36 -07:00
Mark Probst 5eadc280eb
Small fixes (#706)
* Small fixes

* Debug-print name of rewrite even if it's a nop
2018-03-27 09:09:12 -07:00
Solomon Victorino dd8242d111 Emit optional superclass in C# 2018-03-25 14:15:34 -07:00
Solomon Victorino 4191da52ce Rename input language "postman-json" to "postman" 2018-03-25 08:46:03 -07:00
Mark Probst 6f46814ffc
Merge pull request #684 from quicktype/accessor-names
Custom accessor names
2018-03-23 18:14:54 -07:00
Mark Probst 56b2ac539c If the language is explicitly specified, make the name fixed, no styling 2018-03-23 15:44:29 -07:00
Mark Probst af13dfb10b Custom accessor names. Fixes #500 2018-03-23 15:44:08 -07:00
Mark Probst 3681bd650a TSLint fixes 2018-03-23 15:44:07 -07:00
David Siegel 558a6e376f
Merge pull request #693 from quicktype/telemetry-ci
If running on CI, create a stable userId based on the project
2018-03-21 15:08:24 -07:00
David Siegel abca16b326 Add tests for CI detection 2018-03-21 14:37:03 -07:00
Mark Probst 3d5464e5f5
Merge pull request #695 from quicktype/cpp-header-guard
Emit C++ header guard. Fixes #694
2018-03-21 13:35:57 -07:00
Mark Probst b54d13e2b1 Emit C++ header guard. Fixes #694 2018-03-21 13:15:44 -07:00
David Siegel 73c6c13335 Object.keys order is not reliable 2018-03-21 12:21:39 -07:00