glideapps/quicktype

[BUG]: Unable to handle `string|integer` in JSON schema.

Opened this issue · 0 comments

Unable to handle string|integer in JSON schema.

Issue Type

This is an issue with input parsing.

Context (Environment, Version, Language)

Input Format: JSON Schema
Output Language: Swift

CLI, npm, or app.quicktype.io:
Version: app.quicktype.io

Description

Seems that QuickType for now is unable to handle string|integer in JSON schema.

Input Data

UIGFv4-Schema.json

Expected Behaviour / Output

Generates a Swift file with correctly parsed results.

Current Behaviour / Output

image

Steps to Reproduce

quicktype -s schema UIGFv4-Schema.json -o UIGFv4.swift

Possible Solution

IDK.