Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json生成kotlin类出现错误格式 #224

Closed
smilechenbiao opened this issue Aug 14, 2019 · 0 comments
Closed

json生成kotlin类出现错误格式 #224

smilechenbiao opened this issue Aug 14, 2019 · 0 comments
Assignees
Labels
bug L2 Difficulty level 2 (Maximum is 9)
Milestone

Comments

@smilechenbiao
Copy link
Contributor

smilechenbiao commented Aug 14, 2019

{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "definitions": {
        "address": {
            "properties": {
                "city": {
                    "type": "string"
                },
                "state": {
                    "type": "string"
                },
                "street_address": {
                    "type": "string"
                }
            },
            "required": [
                "street_address",
                "city",
                "state"
            ],
            "type": "object"
        }
    },
    "properties": {
        "billing_address": {
            "$ref": "#/definitions/address"
        },
        "shipping_address": {
            "$ref": "#/definitions/address"
        }
    },
    "type": "object"
}

以上json格式的数据在用插件生成kotlin类的时候,会造成address里面的properties类和外层properties出现对换的情况。

image

@smilechenbiao smilechenbiao changed the title json解析出现错误格式 json生成kotlin类出现错误格式 Aug 16, 2019
@smilechenbiao smilechenbiao reopened this Aug 16, 2019
@wuseal wuseal self-assigned this Aug 19, 2019
@wuseal wuseal added this to the 3.5.0 milestone Aug 19, 2019
@wuseal wuseal added the bug label Aug 19, 2019
wuseal pushed a commit that referenced this issue Aug 31, 2019
@wuseal wuseal added L2 Difficulty level 2 (Maximum is 9) fixed but not released this issue has been solved but is not released yet labels Sep 1, 2019
@wuseal wuseal closed this as completed in c5d31f6 Sep 2, 2019
@wuseal wuseal removed the fixed but not released this issue has been solved but is not released yet label Mar 21, 2020
wuseal added a commit that referenced this issue Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug L2 Difficulty level 2 (Maximum is 9)
Projects
None yet
Development

No branches or pull requests

2 participants