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

bug: getData() won’t display on oneOf schema #12

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

saicheck2233
Copy link
Owner

Description: When there is an object type with properties in the oneOf schema, and I key in any data, if I click on getData() button, it won’t display the data out. Below is the schema being used:

{
    "$schema": "http://json-schema.org/draft-03/schema#",
    "oneOf": [
        {
            "title": "An object",
            "type": "object",
            "properties": {
                "p1": {
                    "type": "string",
                    "required": true,
                    "title": "A required string"
                },
                "p2": {
                    "type": "boolean",
                    "title": "A boolean"
                }
            }
        }
    ]
}

Pic before changes:
image
When the getData() button is being clicked on, there is no popout box showing the value.

Pic after changes:
image
Now the popout box would display the data after the getData() button is clicked.

@saicheck2233 saicheck2233 merged commit a476db1 into master Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants