From 1671d3b95f39a52c75c0a44251fb6eb93d9c0dfa Mon Sep 17 00:00:00 2001 From: Dillon Nys <24740863+dnys1@users.noreply.github.com> Date: Tue, 26 Sep 2023 10:23:19 -0700 Subject: [PATCH] chore(repo): Fix line endings (#3825) For some JSON files --- .../resources/query/api/2_results.json | 40 +++---- .../model_name_with_all_query_parameters.json | 106 +++++++++--------- .../resources/query/api/only_model_name.json | 12 +- .../query/predicates/complex_nested.json | 70 ++++++------ .../query/predicates/group_mixed_and_or.json | 64 +++++------ .../query/predicates/group_with_only_and.json | 68 +++++------ .../query/predicates/mixed_with_not.json | 52 ++++----- .../predicates/negate_complex_predicate.json | 84 +++++++------- .../predicates/rating_greater_or_equal.json | 12 +- 9 files changed, 254 insertions(+), 254 deletions(-) diff --git a/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/2_results.json b/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/2_results.json index f89532c534..f140fd9f9a 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/2_results.json +++ b/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/2_results.json @@ -1,20 +1,20 @@ -[ - { - "id": "4281dfba-96c8-4a38-9a8e-35c7e893ea47", - "modelName": "Post", - "serializedData": { - "id": "4281dfba-96c8-4a38-9a8e-35c7e893ea47", - "title": "Title 1", - "rating": 4 - } - }, - { - "id": "43036c6b-8044-4309-bddc-262b6c686026", - "modelName": "Post", - "serializedData": { - "id": "43036c6b-8044-4309-bddc-262b6c686026", - "title": "Title 2", - "created": "2020-02-20T20:20:20-08:00" - } - } -] +[ + { + "id": "4281dfba-96c8-4a38-9a8e-35c7e893ea47", + "modelName": "Post", + "serializedData": { + "id": "4281dfba-96c8-4a38-9a8e-35c7e893ea47", + "title": "Title 1", + "rating": 4 + } + }, + { + "id": "43036c6b-8044-4309-bddc-262b6c686026", + "modelName": "Post", + "serializedData": { + "id": "43036c6b-8044-4309-bddc-262b6c686026", + "title": "Title 2", + "created": "2020-02-20T20:20:20-08:00" + } + } +] diff --git a/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/model_name_with_all_query_parameters.json b/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/model_name_with_all_query_parameters.json index 519cb513b5..77e9020804 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/model_name_with_all_query_parameters.json +++ b/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/model_name_with_all_query_parameters.json @@ -1,53 +1,53 @@ -{ - "modelName": "Post", - "queryPredicate": { - "queryPredicateGroup": { - "type": "or", - "predicates": [ - { - "queryPredicateOperation": { - "field": "id", - "fieldOperator": { "operatorName": "equal", "value": "123" } - } - }, - { - "queryPredicateGroup": { - "type": "and", - "predicates": [ - { - "queryPredicateOperation": { - "field": "rating", - "fieldOperator": { - "operatorName": "greater_or_equal", - "value": 4 - } - } - }, - { - "queryPredicateGroup": { - "type": "not", - "predicates": [ - { - "queryPredicateOperation": { - "field": "created", - "fieldOperator": { - "operatorName": "equal", - "value": "2020-02-20T20:20:20-08:00" - } - } - } - ] - } - } - ] - } - } - ] - } - }, - "queryPagination": { "page": 2, "limit": 8 }, - "querySort": [ - { "field": "id", "order": "ascending" }, - { "field": "created", "order": "descending" } - ] -} +{ + "modelName": "Post", + "queryPredicate": { + "queryPredicateGroup": { + "type": "or", + "predicates": [ + { + "queryPredicateOperation": { + "field": "id", + "fieldOperator": { "operatorName": "equal", "value": "123" } + } + }, + { + "queryPredicateGroup": { + "type": "and", + "predicates": [ + { + "queryPredicateOperation": { + "field": "rating", + "fieldOperator": { + "operatorName": "greater_or_equal", + "value": 4 + } + } + }, + { + "queryPredicateGroup": { + "type": "not", + "predicates": [ + { + "queryPredicateOperation": { + "field": "created", + "fieldOperator": { + "operatorName": "equal", + "value": "2020-02-20T20:20:20-08:00" + } + } + } + ] + } + } + ] + } + } + ] + } + }, + "queryPagination": { "page": 2, "limit": 8 }, + "querySort": [ + { "field": "id", "order": "ascending" }, + { "field": "created", "order": "descending" } + ] +} diff --git a/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/only_model_name.json b/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/only_model_name.json index a63c33d17c..4936b7c24a 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/only_model_name.json +++ b/packages/amplify_datastore/example/ios/unit_tests/resources/query/api/only_model_name.json @@ -1,6 +1,6 @@ -{ - "modelName": "Post", - "queryPredicate": null, - "queryPagination": null, - "querySort": null -} +{ + "modelName": "Post", + "queryPredicate": null, + "queryPagination": null, + "querySort": null +} diff --git a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/complex_nested.json b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/complex_nested.json index c633333ada..611663d067 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/complex_nested.json +++ b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/complex_nested.json @@ -1,35 +1,35 @@ -{ - "queryPredicateGroup": { - "type": "and", - "predicates": [ - { - "queryPredicateOperation": { - "field": "rating", - "fieldOperator": { "operatorName": "less_or_equal", "value": 4 } - } - }, - { - "queryPredicateGroup": { - "type": "or", - "predicates": [ - { - "queryPredicateOperation": { - "field": "id", - "fieldOperator": { "operatorName": "contains", "value": "abc" } - } - }, - { - "queryPredicateOperation": { - "field": "title", - "fieldOperator": { - "operatorName": "begins_with", - "value": "def" - } - } - } - ] - } - } - ] - } -} +{ + "queryPredicateGroup": { + "type": "and", + "predicates": [ + { + "queryPredicateOperation": { + "field": "rating", + "fieldOperator": { "operatorName": "less_or_equal", "value": 4 } + } + }, + { + "queryPredicateGroup": { + "type": "or", + "predicates": [ + { + "queryPredicateOperation": { + "field": "id", + "fieldOperator": { "operatorName": "contains", "value": "abc" } + } + }, + { + "queryPredicateOperation": { + "field": "title", + "fieldOperator": { + "operatorName": "begins_with", + "value": "def" + } + } + } + ] + } + } + ] + } +} diff --git a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/group_mixed_and_or.json b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/group_mixed_and_or.json index 39e0c2e195..b7c320178c 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/group_mixed_and_or.json +++ b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/group_mixed_and_or.json @@ -1,32 +1,32 @@ -{ - "queryPredicateGroup": { - "type": "or", - "predicates": [ - { - "queryPredicateGroup": { - "type": "and", - "predicates": [ - { - "queryPredicateOperation": { - "field": "rating", - "fieldOperator": { "operatorName": "less_than", "value": 4 } - } - }, - { - "queryPredicateOperation": { - "field": "id", - "fieldOperator": { "operatorName": "contains", "value": "abc" } - } - } - ] - } - }, - { - "queryPredicateOperation": { - "field": "title", - "fieldOperator": { "operatorName": "contains", "value": "def" } - } - } - ] - } -} +{ + "queryPredicateGroup": { + "type": "or", + "predicates": [ + { + "queryPredicateGroup": { + "type": "and", + "predicates": [ + { + "queryPredicateOperation": { + "field": "rating", + "fieldOperator": { "operatorName": "less_than", "value": 4 } + } + }, + { + "queryPredicateOperation": { + "field": "id", + "fieldOperator": { "operatorName": "contains", "value": "abc" } + } + } + ] + } + }, + { + "queryPredicateOperation": { + "field": "title", + "fieldOperator": { "operatorName": "contains", "value": "def" } + } + } + ] + } +} diff --git a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/group_with_only_and.json b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/group_with_only_and.json index 29bda07626..cdde5a0b54 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/group_with_only_and.json +++ b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/group_with_only_and.json @@ -1,34 +1,34 @@ -{ - "queryPredicateGroup": { - "type": "and", - "predicates": [ - { - "queryPredicateOperation": { - "field": "rating", - "fieldOperator": { "operatorName": "between", "start": 1, "end": 4 } - } - }, - { - "queryPredicateOperation": { - "field": "id", - "fieldOperator": { "operatorName": "contains", "value": "abc" } - } - }, - { - "queryPredicateOperation": { - "field": "title", - "fieldOperator": { "operatorName": "begins_with", "value": "def" } - } - }, - { - "queryPredicateOperation": { - "field": "created", - "fieldOperator": { - "operatorName": "equal", - "value": "2020-02-20T20:20:20-08:00" - } - } - } - ] - } -} +{ + "queryPredicateGroup": { + "type": "and", + "predicates": [ + { + "queryPredicateOperation": { + "field": "rating", + "fieldOperator": { "operatorName": "between", "start": 1, "end": 4 } + } + }, + { + "queryPredicateOperation": { + "field": "id", + "fieldOperator": { "operatorName": "contains", "value": "abc" } + } + }, + { + "queryPredicateOperation": { + "field": "title", + "fieldOperator": { "operatorName": "begins_with", "value": "def" } + } + }, + { + "queryPredicateOperation": { + "field": "created", + "fieldOperator": { + "operatorName": "equal", + "value": "2020-02-20T20:20:20-08:00" + } + } + } + ] + } +} diff --git a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/mixed_with_not.json b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/mixed_with_not.json index 536c392bec..be6e09b929 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/mixed_with_not.json +++ b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/mixed_with_not.json @@ -1,26 +1,26 @@ -{ - "queryPredicateGroup": { - "type": "and", - "predicates": [ - { - "queryPredicateOperation": { - "field": "rating", - "fieldOperator": { "operatorName": "greater_than", "value": 4 } - } - }, - { - "queryPredicateGroup": { - "type": "not", - "predicates": [ - { - "queryPredicateOperation": { - "field": "rating", - "fieldOperator": { "operatorName": "equal", "value": 1 } - } - } - ] - } - } - ] - } -} +{ + "queryPredicateGroup": { + "type": "and", + "predicates": [ + { + "queryPredicateOperation": { + "field": "rating", + "fieldOperator": { "operatorName": "greater_than", "value": 4 } + } + }, + { + "queryPredicateGroup": { + "type": "not", + "predicates": [ + { + "queryPredicateOperation": { + "field": "rating", + "fieldOperator": { "operatorName": "equal", "value": 1 } + } + } + ] + } + } + ] + } +} diff --git a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/negate_complex_predicate.json b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/negate_complex_predicate.json index bfe2c296dc..e0b55778ef 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/negate_complex_predicate.json +++ b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/negate_complex_predicate.json @@ -1,42 +1,42 @@ -{ - "queryPredicateGroup": { - "type": "not", - "predicates": [ - { - "queryPredicateGroup": { - "type": "and", - "predicates": [ - { - "queryPredicateOperation": { - "field": "rating", - "fieldOperator": { "operatorName": "equal", "value": 1 } - } - }, - { - "queryPredicateGroup": { - "type": "or", - "predicates": [ - { - "queryPredicateOperation": { - "field": "rating", - "fieldOperator": { "operatorName": "equal", "value": 4 } - } - }, - { - "queryPredicateOperation": { - "field": "title", - "fieldOperator": { - "operatorName": "contains", - "value": "crap" - } - } - } - ] - } - } - ] - } - } - ] - } -} +{ + "queryPredicateGroup": { + "type": "not", + "predicates": [ + { + "queryPredicateGroup": { + "type": "and", + "predicates": [ + { + "queryPredicateOperation": { + "field": "rating", + "fieldOperator": { "operatorName": "equal", "value": 1 } + } + }, + { + "queryPredicateGroup": { + "type": "or", + "predicates": [ + { + "queryPredicateOperation": { + "field": "rating", + "fieldOperator": { "operatorName": "equal", "value": 4 } + } + }, + { + "queryPredicateOperation": { + "field": "title", + "fieldOperator": { + "operatorName": "contains", + "value": "crap" + } + } + } + ] + } + } + ] + } + } + ] + } +} diff --git a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/rating_greater_or_equal.json b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/rating_greater_or_equal.json index 6b6a8c42bb..d7722bef35 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/rating_greater_or_equal.json +++ b/packages/amplify_datastore/example/ios/unit_tests/resources/query/predicates/rating_greater_or_equal.json @@ -1,6 +1,6 @@ -{ - "queryPredicateOperation": { - "field": "rating", - "fieldOperator": { "operatorName": "greater_or_equal", "value": 4 } - } -} +{ + "queryPredicateOperation": { + "field": "rating", + "fieldOperator": { "operatorName": "greater_or_equal", "value": 4 } + } +}