quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

Generate types and converters from JSON, Schema, and GraphQL

Results 363 quicktype issues
Sort by recently updated
recently updated
newest added

We should be able to parse all valid test cases. https://github.com/json-schema-org/JSON-Schema-Test-Suite

JSON Schema
good first issue

[String.prototype.substr()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) is deprecated so we replace it with [String.prototype.slice()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) which works similarily but isn't deprecated. .substr() probably isn't going away anytime soon but the change is trivial so it doesn't...

A typical generated python class looks like this: ``` @dataclass class UpdateIssueEventNoteSchema: note: str @staticmethod def from_dict(obj: Any) -> 'UpdateIssueEventNoteSchema': assert isinstance(obj, dict) note = from_str(obj.get("note")) return UpdateIssueEventNoteSchema(note) ``` However,...

Hi, the following input creates unexpected output: ` quicktype --src-lang schema /schemas/ -o Models.ts` Example: suppose the file /schemas/alert_schema.json: ``` { "type": "object", "required": [ "issue_id", "alert_type_id", "options" ], "properties":...

Example ```sh quicktype -s schema lib/schemas/**/*.json --lang ts -o lib/schemas/ --just-types ``` It would be great if it could automatically take the fileName of json schema and create output with...

use "??" instead of " == null ? null : " , much cleaner code. thanks

just use the keyword "required" instead of "@required"

Following are the things I worked on: added detect enum option added null-safety make all properties nullable keep properties name, enum, and union name same as Key in JSON (this...

The right one should be like this: ``` class RecommendResult { RecommendResult({ this.pageSize, this.pageNo, this.totalCount, this.resultData, this.searchAfter,}); RecommendResult.fromJson(dynamic json) { pageSize = json['pageSize']; pageNo = json['pageNo']; totalCount = json['totalCount']; if...

Hi, Bro I used this for a long time it's very helpful and time-saving. but the problem is here dart release null safety and model changed in null safety. please...