{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":931033,"defaultBranch":"main","name":"Validation","ownerLogin":"Respect","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2010-09-22T16:08:05.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/354431?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1713001641.0","currentOid":""},"activityList":{"items":[{"before":"2d90bc3484dc0739e5dab91e37b4067eecb22e60","after":"719f12a424b34c171b1afee4e576e1da6aadae82","ref":"refs/heads/main","pushedAt":"2024-04-23T14:02:47.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Increase code coverage of some rules\n\nWe were not thoroughly testing quite a few rules, especially the\nconstructor of some of them.\n\nThis commit increases the code coverage, ensuring almost every single\nline in the \"Rules\" namespace is covered.","shortMessageHtmlLink":"Increase code coverage of some rules"}},{"before":"2ae1df177a53fc8c13514e6dea4df8da01670c02","after":"2d90bc3484dc0739e5dab91e37b4067eecb22e60","ref":"refs/heads/main","pushedAt":"2024-04-23T13:59:09.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Increase code coverage of some rules\n\nWe were not thoroughly testing quite a few rules, especially the\nconstructor of some of them.\n\nThis commit increases the code coverage, ensuring almost every single\nline in the \"Rules\" namespace is covered.","shortMessageHtmlLink":"Increase code coverage of some rules"}},{"before":"10a67b4c1da14b448601c5e2fe749c6a713884f8","after":null,"ref":"refs/heads/workflows/update-regional-information","pushedAt":"2024-04-13T09:45:58.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"}},{"before":"263ae118fb9b0d3bc6692eb2154cd851deff7932","after":"967f7b6cc71e3728bb0f766cc1aea0604b2955aa","ref":"refs/heads/2.3","pushedAt":"2024-04-13T09:45:55.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update Regional Information","shortMessageHtmlLink":"Update Regional Information"}},{"before":null,"after":"10a67b4c1da14b448601c5e2fe749c6a713884f8","ref":"refs/heads/workflows/update-regional-information","pushedAt":"2024-03-29T00:05:43.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Update Regional Information","shortMessageHtmlLink":"Update Regional Information"}},{"before":"d7dc0f2b4e5538f4b685e13678169138f73d7013","after":"2ae1df177a53fc8c13514e6dea4df8da01670c02","ref":"refs/heads/main","pushedAt":"2024-03-27T23:41:22.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Allow to customise messages while asserting\n\nBecause we now have a single \"assert()\" method, we have more freedom to\nadd more customizations to it. This specific one is handy if someone\nwants to use the library to validate but wants to use their own\nexceptions.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Allow to customise messages while asserting"}},{"before":"707dcae65f233e64c17e52485757d22aa4f23fac","after":"d7dc0f2b4e5538f4b685e13678169138f73d7013","ref":"refs/heads/main","pushedAt":"2024-03-26T00:57:33.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Refactor the \"NullOr\" rule and related classes\n\nThis commit will rename the \"Nullable\" rule to \"NullOr\" while soft\ndeprecating the old name. It should work the same as the previous one\nbut with a different name. It will also prefix the result ID, allowing\nmore message customization.\n\nWhile working on it, I realized that the prefix \"nullOr\" had a typo,\nand it was using \"nullOf\" instead. I fixed that, too.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Refactor the \"NullOr\" rule and related classes"}},{"before":"eeaea466ace0c3cef527fb49da378ed81cd6b2f5","after":"707dcae65f233e64c17e52485757d22aa4f23fac","ref":"refs/heads/main","pushedAt":"2024-03-26T00:50:51.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Refactor the \"UndefOr\" rule and related classes\n\nThis commit will rename the \"Optional\" rule to\"UndefOr\" while soft\ndeprecating the old name. It should work the same as the previous one\nbut with a different name. It will also prefix the result ID, allowing\nmore message customization.\n\nWhile working on it, I realized that the prefix \"undefOr\" had a typo,\nand it was using \"undefOf\" instead. I fixed that, too.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Refactor the \"UndefOr\" rule and related classes"}},{"before":"8573bc5d45a20e88517d33b7eb338aa6e6413608","after":"eeaea466ace0c3cef527fb49da378ed81cd6b2f5","ref":"refs/heads/main","pushedAt":"2024-03-26T00:26:33.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Prefix IDs of wrapper rule results\n\nBecause some rules work more as a prefix, it makes sense to prefix their\nresult ID. That will allow for a more intuitive templating, especially\nwhen using those rules as prefixes.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Prefix IDs of wrapper rule results"}},{"before":"9322cd6375a8cc433c4ddf0af743e39b06071c99","after":"8573bc5d45a20e88517d33b7eb338aa6e6413608","ref":"refs/heads/main","pushedAt":"2024-03-26T00:15:34.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Do not overwrite \"IDs\" when updating names\n\nWhen you have a chain of rules in the Validation and overwrite the name\nwith \"setName(),\" it's impossible to get the messages from all rules in\nthe chain as an array because they all have the same name.\n\nThese changes will change that behavior by creating a more explicit\ndistinction between \"IDs\" and \"names.\" The \"IDs\" will remain\nunchangeable, while we can always overwrite the names. That means that\nthe array messages will look more similar to the chain, and it will be\npossible to overwrite the messages from multiple rules in the same\nchain.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Do not overwrite \"IDs\" when updating names"}},{"before":"fefe905e0bf34be762abf378138d5e0895f88ab9","after":"9322cd6375a8cc433c4ddf0af743e39b06071c99","ref":"refs/heads/main","pushedAt":"2024-03-25T22:49:52.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Do not create results with siblings in the When rule\n\nWhen creating a result with a sibling in the When rule, the result\ngenerates an unhelpful message. In most of the use cases of the When\nrule, the initial rule (\"when\") is only helpful in determining which\nwill be the \"real\" rule to use.\n\nThose changes will change the When rule not to generate results with\nsiblings.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Do not create results with siblings in the When rule"}},{"before":"d1f108dc8791727c492d3cefcaa4929695fdd6a8","after":"fefe905e0bf34be762abf378138d5e0895f88ab9","ref":"refs/heads/main","pushedAt":"2024-03-25T21:40:01.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Include \"__root__\" when getting message as an array\n\nWhen converting an object into an array, we exclude the message root\nmessage from it. Since we're using a convention to template those\nmessages as an array, we could also use the same convention to return\nthose messages.\n\nWhile working on it, I noticed that the name \"__self__\" wasn't\nreflecting what that really meant, so I renamed it \"__root__\" because it\nbetter reflects the meaning of those messages/templates.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Include \"__root__\" when getting message as an array"}},{"before":"ae7a20f6d3b4c8f644677a79ab9d667e59a72a90","after":"d1f108dc8791727c492d3cefcaa4929695fdd6a8","ref":"refs/heads/main","pushedAt":"2024-03-25T21:10:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Make proper use of exceptions in rules\n\nThis commit will ensure that all rules that cannot be created because of\ninvalid arguments in the constructor will throw the\nInvalidRuleConstructorException. It will also make ComponentException\nextend LogicException, which makes it easier to determine that the\nclient has improperly used the library.\n\nI also introduced some tests for two exceptions with logic in their\nconstructor.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Make proper use of exceptions in rules"}},{"before":"66faefd695faa92e2777c133b6d50cb894090e33","after":"ae7a20f6d3b4c8f644677a79ab9d667e59a72a90","ref":"refs/heads/main","pushedAt":"2024-03-25T17:46:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update Regional Information","shortMessageHtmlLink":"Update Regional Information"}},{"before":"ae369c4791c36186f8c32ea571744681a123368f","after":"66faefd695faa92e2777c133b6d50cb894090e33","ref":"refs/heads/main","pushedAt":"2024-03-25T11:31:57.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Remove previous validation engine\n\nAfter many refactorings, no rules use the previous validation engine.\nThat means we can remove the unused code from the repository and switch\nfrom the previous to the new validation engine everywhere.\n\nThis commit will also soft deprecate the methods \"validate()\", and\n\"check()\" in all the rules and the \"assert()\" in all rules but the\nValidator itself. That means using those methods will still be allowed,\nbut static analysis tools might complain.\n\nThis is a big step toward releasing the next major version, as the code\nis pretty much the way it should be when I release the next version.\nThere's some documentation to be updated, and I would like to change the\nbehavior of a couple of rules.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Remove previous validation engine"}},{"before":"92b196ee19333977331ed7531c2418fd29dcdcc8","after":"ae369c4791c36186f8c32ea571744681a123368f","ref":"refs/heads/main","pushedAt":"2024-03-25T07:50:05.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Improve Phone validation\n\nThis commit will improve the Phone rule in the following ways:\n\n* Upgrade its validation engine;\n\n* Increase the number of tests;\n\n* Do not validate phone numbers from other regions.\n\nThe last item is a possible bug with \"libphonenumber-for-php\", which I\nhave already reported.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Improve Phone validation"}},{"before":"eb5f9a90e7037d2a6a9ced862055f611fefdcf26","after":"92b196ee19333977331ed7531c2418fd29dcdcc8","ref":"refs/heads/main","pushedAt":"2024-03-25T07:48:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"Size\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"Size\" rule"}},{"before":"b653b055b461ed699b181ecd3606cb67581e8fc4","after":"eb5f9a90e7037d2a6a9ced862055f611fefdcf26","ref":"refs/heads/main","pushedAt":"2024-03-25T07:36:21.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of age-related rules\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of age-related rules"}},{"before":"dd3a87b2dbb0b86fa659d2eab60520b2f8950cf6","after":"b653b055b461ed699b181ecd3606cb67581e8fc4","ref":"refs/heads/main","pushedAt":"2024-03-24T23:18:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"Ip\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"Ip\" rule"}},{"before":"18923a2c93b0f8e0446fc169f36433c8df0478e1","after":"dd3a87b2dbb0b86fa659d2eab60520b2f8950cf6","ref":"refs/heads/main","pushedAt":"2024-03-24T23:15:34.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"Sorted\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"Sorted\" rule"}},{"before":"ccec34cf21ca4c0a3acb0968aea295290bcb8fc6","after":"263ae118fb9b0d3bc6692eb2154cd851deff7932","ref":"refs/heads/2.3","pushedAt":"2024-03-24T18:49:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Do not validate phone numbers from other regions\n\nI'm unsure whether this is a bug in \"libphonenumber-for-php\" or if we're\nmisusing the library. This commit will ensure that only phone numbers\nfrom a specific region will be considered valid. I've reported the issue\nto \"libphonenumber-for-php\" anyways [1].\n\n[1]: https://github.com/giggsey/libphonenumber-for-php/issues/621\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Do not validate phone numbers from other regions"}},{"before":"74cb7bd509397817b0d4a16bec4c240f591f2cba","after":"18923a2c93b0f8e0446fc169f36433c8df0478e1","ref":"refs/heads/main","pushedAt":"2024-03-24T18:34:15.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"VideoUrl\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"VideoUrl\" rule"}},{"before":"67888e1b8d59e17104dc2b86d8e21a0d60a909ce","after":"74cb7bd509397817b0d4a16bec4c240f591f2cba","ref":"refs/heads/main","pushedAt":"2024-03-24T17:18:56.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"CreditCard\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"CreditCard\" rule"}},{"before":"ea605b61b672c3320338074a14c7959a2dbe0c33","after":"67888e1b8d59e17104dc2b86d8e21a0d60a909ce","ref":"refs/heads/main","pushedAt":"2024-03-24T17:13:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"Uuid\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"Uuid\" rule"}},{"before":"630e6ecb6db66ecfd56a458b021e62ff97a5fc25","after":"ea605b61b672c3320338074a14c7959a2dbe0c33","ref":"refs/heads/main","pushedAt":"2024-03-24T17:08:05.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Simplify InvalidRuleConstructorException\n\nThe message wasn't looking very user friendly, so I changed it a little\nbit.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Simplify InvalidRuleConstructorException"}},{"before":"d116086f49e1b4940619af9ce48387806058de27","after":"630e6ecb6db66ecfd56a458b021e62ff97a5fc25","ref":"refs/heads/main","pushedAt":"2024-03-24T16:28:10.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"NotEmpty\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"NotEmpty\" rule"}},{"before":"c198547a17813ad501919c25d6f5397d40f7c9c3","after":"d116086f49e1b4940619af9ce48387806058de27","ref":"refs/heads/main","pushedAt":"2024-03-24T16:25:42.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"NotBlank\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"NotBlank\" rule"}},{"before":"8805c88d4cd3a15a9bea65e2971ce18973466d97","after":"c198547a17813ad501919c25d6f5397d40f7c9c3","ref":"refs/heads/main","pushedAt":"2024-03-24T16:23:32.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"NotOptional\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"NotOptional\" rule"}},{"before":"97b243daa1be2a8f5f58f2306c775d9de55cff43","after":"8805c88d4cd3a15a9bea65e2971ce18973466d97","ref":"refs/heads/main","pushedAt":"2024-03-24T16:19:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Update the validation engine of the \"DateTime\" rule\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Update the validation engine of the \"DateTime\" rule"}},{"before":"9eafe5225286973dd49b0fadb3b77675896f66ab","after":"97b243daa1be2a8f5f58f2306c775d9de55cff43","ref":"refs/heads/main","pushedAt":"2024-03-24T16:08:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"henriquemoody","name":"Henrique Moody","path":"/henriquemoody","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/154023?s=80&v=4"},"commit":{"message":"Allow building rules using prefixes\n\nAlthough helpful, the changes in the Min, Max, and Length rules made\nusing those rules more verbose. This commit will simplify their use by\nallowing users to use them as prefixes.\n\nBecause I was creating prefixes for those rules, I made other cool\nprefixes. Doing that is scary because it will generate more code to\nsupport, and I would have liked to avoid that. However, that's a\nvaluable addition, and it's worth the risk.\n\nI might reconsider that in the future, but for now, that looks like a\ngood idea.\n\nSigned-off-by: Henrique Moody ","shortMessageHtmlLink":"Allow building rules using prefixes"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEOCTqBgA","startCursor":null,"endCursor":null}},"title":"Activity ยท Respect/Validation"}