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

chore: upgrade react-jsonschema-form #986

Merged
merged 13 commits into from
May 21, 2018

Conversation

jsomsanith-tlnd
Copy link
Contributor

@jsomsanith-tlnd jsomsanith-tlnd commented Jan 12, 2018

What is the problem this PR is trying to solve?
Split react 16 branch changes into smaller PRs, to ease the changes and the integration.
This PR only on upgrading react-jsonSchema-form lib.

What is the chosen solution to this problem?
Upgrade react-jsonschema-form

Please check if the PR fulfills these requirements

  • The PR commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Related design / discussions / pages (not in jira), if any, are all linked or available in the PR

[x] This PR introduces a breaking change

There is breaking change because it uses ajv now to validate the schema. 2 format was supported to declare that a field is required.
Json schema spec says that the required format is the one the lib still support : http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.5.3

Before

{
    "jsonSchema": {
        "title": "Form with live validation",
        "type": "object",
        "properties": {
            "name": {
                "title": "Name",
                "type": "string",
                "minLength": 3,
                "required": true
            },
            "email": {
                "title": "Email",
                "type": "string",
                "pattern": "^\\S+@\\S+$",
                "minLength": 5,
                "required": true
            }
        }
    }
}

After

{
    "jsonSchema": {
        "title": "Form with live validation",
        "type": "object",
        "required": ["name", "email"],
        "properties": {
            "name": {
                "title": "Name",
                "type": "string",
                "minLength": 3
            },
            "email": {
                "title": "Email",
                "type": "string",
                "pattern": "^\\S+@\\S+$",
                "minLength": 5
            }
        }
    }
}

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

1 similar comment
@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@jmfrancois
Copy link
Collaborator

publish as 0.186.0-beta-1

@build-travis-ci
Copy link
Collaborator

:octocat: Demo is available here

@jsomsanith-tlnd jsomsanith-tlnd merged commit 0356dbc into master May 21, 2018
@jsomsanith-tlnd jsomsanith-tlnd deleted the jsomsanith/chore/upgrade_react_jsonschema_form branch May 21, 2018 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants