get-graphql-from-jsonschema
Version:
get-graphql-from-jsonschema gets a GraphQL schema from a JSON schema.
329 lines (143 loc) • 16.1 kB
Markdown
# [8.1.0](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.18...8.1.0) (2022-09-04)
### Features
* Add meaningful error for object schemas without properties. ([#376](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/376)) ([f33f763](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/f33f763e96321a4550b66212ff36a5878af3356e))
## [8.0.18](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.17...8.0.18) (2022-08-11)
### Bug Fixes
* Update dependencies. ([#375](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/375)) ([ab7c4ce](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/ab7c4ced4206e57230a0b67cb4abb3e0cf77b914))
## [8.0.17](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.16...8.0.17) (2022-03-09)
### Bug Fixes
* Fix compatibility to latest TypeScript version. ([#362](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/362)) ([5671182](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/567118241bc0bc89e104b1c3dafbf2a01a9a72ce))
## [8.0.16](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.15...8.0.16) (2021-08-24)
### Bug Fixes
* add exclude to tsconfig.json, remove engine constraint ([#337](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/337)) ([8d5c42a](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/8d5c42a2778cbbe1eb0fcfc22425594e76206d4e))
## [8.0.15](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.14...8.0.15) (2021-08-15)
### Bug Fixes
* bump path-parse from 1.0.6 to 1.0.7 ([#334](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/334)) ([24ca421](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/24ca4211ab3b73577f0f5d65e30df7e3dd1b7819))
## [8.0.14](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.13...8.0.14) (2021-08-09)
### Bug Fixes
* bump @types/json-schema from 7.0.8 to 7.0.9 ([#332](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/332)) ([9a21f06](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/9a21f060f4674ce7a40353382919002a8124af3f))
## [8.0.13](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.12...8.0.13) (2021-07-26)
### Bug Fixes
* bump defekt from 7.3.1 to 7.3.2 ([#328](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/328)) ([219f549](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/219f54992733b6197aefdf56c52f910e0ed43ba0))
## [8.0.12](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.11...8.0.12) (2021-07-13)
### Bug Fixes
* bump defekt from 7.3.0 to 7.3.1 ([#322](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/322)) ([7f99a20](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/7f99a20cb783ed41122228d7e100d11a74932e8b))
## [8.0.11](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.10...8.0.11) (2021-07-13)
### Bug Fixes
* bump @types/common-tags from 1.8.0 to 1.8.1 ([#323](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/323)) ([9c1614d](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/9c1614d616d3e8821b33d0406ad986599db47352))
## [8.0.10](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.9...8.0.10) (2021-07-13)
### Bug Fixes
* bump @types/json-schema from 7.0.7 to 7.0.8 ([#325](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/325)) ([740553e](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/740553e553862bf0fc5a9af4a33245c02577e867))
## [8.0.9](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.8...8.0.9) (2021-07-06)
### Bug Fixes
* bump defekt from 7.2.3 to 7.3.0 ([#321](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/321)) ([20c7728](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/20c7728a06948c5d4ad3dbc8d1d91c2f8b81a3c1))
## [8.0.8](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.7...8.0.8) (2021-06-22)
### Bug Fixes
* bump defekt from 7.2.0 to 7.2.3 ([#316](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/316)) ([e8f30d8](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/e8f30d8044ae33ac6c84ab639f5ba74f7faf195e))
## [8.0.7](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.6...8.0.7) (2021-06-10)
### Bug Fixes
* bump normalize-url from 6.0.0 to 6.0.1 ([#311](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/311)) ([7fc6edb](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/7fc6edb7d9fd9cb50bdcbdf2926b09a85bab4b01))
## [8.0.6](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.5...8.0.6) (2021-06-10)
### Bug Fixes
* bump glob-parent from 5.1.1 to 5.1.2 ([#313](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/313)) ([15fbd22](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/15fbd226cb08ff1563ed8490095b9f103f3343b0))
## [8.0.5](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.4...8.0.5) (2021-06-10)
### Bug Fixes
* bump trim-newlines from 3.0.0 to 3.0.1 ([#312](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/312)) ([0e55850](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/0e558500916e0d2f505a79a6ed16a1a04a2e5c61))
## [8.0.4](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.3...8.0.4) (2021-05-31)
### Bug Fixes
* bump defekt from 7.1.2 to 7.2.0 ([#305](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/305)) ([1c6c46f](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/1c6c46fba0421805948c943abe6f9845e557fb75))
## [8.0.3](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.2...8.0.3) (2021-05-26)
### Bug Fixes
* Add missing property 'format' to CommonSchema. ([#304](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/304)) ([bda810f](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/bda810f460a86512fe7e8edabbe077ffdc575276))
## [8.0.2](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.1...8.0.2) (2021-05-25)
### Bug Fixes
* bump defekt from 7.1.1 to 7.1.2 ([#301](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/301)) ([20e844e](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/20e844e86a6595485e5d6c87483f5ce6cea45fb3))
## [8.0.1](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/8.0.0...8.0.1) (2021-05-17)
### Bug Fixes
* bump defekt from 7.1.0 to 7.1.1 ([#298](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/298)) ([7dff387](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/7dff38799e2183d8ead25eb3b9ad2ad111b4e2c7))
# [8.0.0](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/7.0.8...8.0.0) (2021-05-12)
### Features
* Restrict which schemas can be used with the typesystem. ([#293](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/293)) ([1cb8a2c](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/1cb8a2c6f0b137f975181bb00d8a5b4489317a12))
### BREAKING CHANGES
* Restrict which schemas can be used with the type system.
## [7.0.8](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/7.0.7...7.0.8) (2021-03-29)
### Bug Fixes
* bump defekt from 7.0.4 to 7.1.0 ([#283](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/283)) ([646624b](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/646624b8ea63f1e5b8da2b99a1ebeba71e0f2514))
## [7.0.7](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/7.0.6...7.0.7) (2021-03-25)
### Bug Fixes
* Migrate from master to main. ([#275](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/275)) ([4924f21](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/4924f21ef4a897a3e7f381f1c760fa78a1226ac1))
## [7.0.6](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/7.0.5...7.0.6) (2021-03-25)
### Bug Fixes
* update defekt ([#274](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/274)) ([fea407d](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/fea407d82e47acccd9d7b700b0dde4dc72fad6b1))
## [7.0.5](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/7.0.4...7.0.5) (2021-02-09)
### Bug Fixes
* bump @types/json-schema from 7.0.6 to 7.0.7 ([#234](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/234)) ([9b8c11c](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/9b8c11cf8fbf9b4e3b995137fe948b590feae2ee))
## [7.0.4](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/7.0.3...7.0.4) (2021-01-27)
### Bug Fixes
* bump defekt from 6.0.1 to 6.0.2 ([#235](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/235)) ([10dc021](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/10dc0218b7cb12096bab9020208b9f1d91266f9e))
## [7.0.3](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/7.0.2...7.0.3) (2020-11-26)
### Bug Fixes
* bump defekt from 6.0.0 to 6.0.1 ([#209](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/209)) ([ca959f8](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/ca959f83fc15171ab487ee245809d5ead3dfbebe))
## [7.0.2](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/7.0.1...7.0.2) (2020-11-26)
### Bug Fixes
* bump defekt from 5.3.0 to 6.0.0 ([#207](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/207)) ([30bec0e](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/30bec0e673f5d0a7671738eb3c650641ef61da09))
## [7.0.1](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/7.0.0...7.0.1) (2020-11-26)
### Bug Fixes
* bump defekt from 5.2.2 to 5.3.0 ([#206](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/206)) ([96257a1](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/96257a1795b8d7b490d23b66af3c8ad6863cc18d))
# [7.0.0](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/6.0.5...7.0.0) (2020-11-13)
### Features
* Migrate to JSONSchema7. ([#197](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/197)) ([ad0290f](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/ad0290f37c3093c182febb1694b2ae72d260fa2a))
### BREAKING CHANGES
* Types are new incompatible with the previously used JSONSchema4 type.
## [6.0.5](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/6.0.4...6.0.5) (2020-11-03)
### Bug Fixes
* bump defekt from 5.2.1 to 5.2.2 ([#185](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/185)) ([b302b61](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/b302b616aaead63fbdc54bb1224c5ea77c364889))
## [6.0.4](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/6.0.3...6.0.4) (2020-11-03)
### Bug Fixes
* Fix headline for robot section in readme. ([#180](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/180)) ([0e1a43f](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/0e1a43f1774468392f31225aa28e4a86ad627071))
## [6.0.3](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/6.0.2...6.0.3) (2020-10-29)
### Bug Fixes
* bump defekt from 5.2.0 to 5.2.1 ([#176](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/176)) ([04a4cd3](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/04a4cd30138ac7310965c463e9e3789a92761fb1))
## [6.0.2](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/6.0.1...6.0.2) (2020-10-14)
### Bug Fixes
* bump defekt from 5.1.0 to 5.2.0 ([#173](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/173)) ([0583ef3](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/0583ef37521d75a303071ffe21ce1ba2ca9217d6))
## [6.0.1](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/6.0.0...6.0.1) (2020-09-02)
### Bug Fixes
* bump @types/json-schema from 7.0.5 to 7.0.6 ([#155](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/155)) ([25c6169](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/25c6169c9edf4c8e6e66272d3f4e2faf52742f1c))
# [6.0.0](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/5.0.3...6.0.0) (2020-08-03)
### Features
* Flip usage of oneOf/anyOf, since it was wrong. Add documentation. ([#142](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/142)) ([d91bfc1](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/d91bfc11cbd2bebff9d9a1eabb836571a6e5e708))
### BREAKING CHANGES
* It is impossible to map json schema's anyOf to GraphQL, since multiple
of the given schemas may match. GraphQL only provider exclusionary
union types, which correspond to oneOf in json schema.
So the terms had to be switched.
## [5.0.3](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/5.0.2...5.0.3) (2020-07-13)
### Bug Fixes
* bump defekt from 5.0.1 to 5.1.0 ([#133](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/133)) ([feb91fe](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/feb91fee7f761f8a3062cb1f8a9eac1cb3dc0c54))
## [5.0.2](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/5.0.1...5.0.2) (2020-06-10)
### Bug Fixes
* bump @types/json-schema from 7.0.4 to 7.0.5 ([#125](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/125)) ([676eb05](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/676eb05e9ec1d441b95215eb63615e1ca07a4976))
## [5.0.1](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/5.0.0...5.0.1) (2020-05-05)
### Bug Fixes
* runtime deps are in dev-dependencies ([#120](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/120)) ([594d1ac](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/594d1acbead52d32a51a3f95736a4cbc9d1d38b9))
# [5.0.0](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/4.1.0...5.0.0) (2020-02-26)
### Features
* Force major update. ([#94](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/94)) ([60f8669](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/60f8669dc68ae1467ee66cfd26962c8a237af253))
### BREAKING CHANGES
* Force major update, because both previous commits lost this.
# [4.1.0](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/4.0.0...4.1.0) (2020-02-26)
### Features
* Force major update. ([#93](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/93)) ([ff5d757](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/ff5d75792b6534141d00d71b9956f4d16cdfa79b))
# [4.0.0](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/3.0.1...4.0.0) (2020-02-26)
### Features
* Parse anyOf and ignore null. ([#91](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/91)) ([2b6bad7](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/2b6bad7910a849ea74826ecc0517bfc6ebc6ef0e))
### BREAKING CHANGES
* Changes the names of resulting types by appending
indexes for types and anyOfs.
* Update README.md
* fix: Update readme.
Co-authored-by: Golo Roden <golo.roden@thenativeweb.io>
## [3.0.1](https://github.com/thenativeweb/get-graphql-from-jsonschema/compare/3.0.0...3.0.1) (2020-02-03)
### Bug Fixes
* bump defekt from 5.0.0 to 5.0.1 ([#76](https://github.com/thenativeweb/get-graphql-from-jsonschema/issues/76)) ([d5a94e5](https://github.com/thenativeweb/get-graphql-from-jsonschema/commit/d5a94e5c33b580aacde238f2638066f425614a3c))