quicktype
quicktype copied to clipboard
Generate types and converters from JSON, Schema, and GraphQL
Support yaml please! :)
The to_json/from_json functions should be in the same namespace as the structure. I'm using Visual Studio 2017 (VC++) Additional information: https://github.com/nlohmann/json/issues/780#issuecomment-376696058 **QuickType Code Gen** ``` #pragma once #include "json.hpp" namespace...
Hi there! Thank you for your great tool! Converting a dictonary-like JSON schema to TS types I have found the following issue: The keys are not enforced as Enum but...
I built for me working php language adapter. There a still some thing todo like Date/Time/UUID Type support. But I hope it's a nice starting point. To the php language...
Hello , why PHP isn't the list ?
Hi there, Do you have a plan to convert a json into a PHP class? Best regards.
Kotlinx supports "@SerialName" for enums. We don't need custom serializers anymore. This approach will output: ``` @Serializable enum class Level(val value: String) { @SerialName("info") Info("info"), @SerialName("warning") Warning("warning"); } ```
When converting to Dart and use "Make all properties required" it does add an @ infront of required. That isnt used anymore in Dart and Flutter.
Enumeration fields with non-string values seem to be ignored. I tested this with C++ and Rust Sample schema ```JSON { "$schema": "http://json-schema.org/draft-06/schema#", "$ref": "#/definitions/Tmp", "definitions": { "Tmp": { "type": "object",...
In #1339 the any type for the kotlinx generation was changed to `JsonObject` which I have personally found to cause more issues than it solves. Often when generating kotlin code...