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

Parse arrays with a single item and no numbering #2

Merged
merged 1 commit into from Apr 17, 2019

Commits on Apr 9, 2019

  1. Parse arrays with a single item and no numbering

    This patch fixes an issue when integrating with
    mozilla-services/react-jsonschema-form where only one item is in an
    array.
    
    Example:
    
        {
            "nested[][nested_key_1]": "nested_value_1",
            "nested[][nested_key_2]": "nested_value_2",
        }
    
    With this patch the result is (instead of the original example above):
    
        {
            "nested": [{
    	    "nested_key_1": "nested_value_1",
    	    "nested_key_2": "nested_value_2",
            }],
        }
    zvyn committed Apr 9, 2019
    Copy the full SHA
    4dc6ffb View commit details
    Browse the repository at this point in the history