File size: 104,428 Bytes
6ab90c0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{"time": "2023-09-14T04:48:39+00:00", "type": "commit", "payload": {"sha": "3c64da2a62d05300c21b04bb885fc934e92a0dd7", "node_id": "C_kwDOKNhT9doAKDNjNjRkYTJhNjJkMDUzMDBjMjFiMDRiYjg4NWZjOTM0ZTkyYTBkZDc", "commit": {"author": {"name": "Daniel Neilson", "email": "53624638+ddneilson@users.noreply.github.com", "date": "2023-09-14T04:48:39Z"}, "committer": {"name": "Daniel Neilson", "email": "53624638+ddneilson@users.noreply.github.com", "date": "2023-09-14T18:40:59Z"}, "message": "feat: improve validation error messaging\n\nSummary:\n When validation errors are encountered the error string that we report\ncomes straight from pydantic and has two issues:\n1. It contains extra information that only serves to make it harder to\n   read. e.g. all of the parenthetical text in:\n```\nsteps -> 0 -> parameterSpace -> taskParameterDefinitions -> 0\n  Discriminator 'type' is missing in value (type=value_error.discriminated_union.missing_discriminator; discriminator_key=type)\n```\n2. The path-to-error contains the name of classes for discriminated\n   unions. e.g. The 'JobStringParameterDefinition' in:\n```\nparameterDefinitions -> 0 -> JobStringParameterDefinition -> userInterface -> control\n  value is not a valid enumeration member ...\n```\n\n We want a more succint and readable set of error messages.\n\nSolution:\n  For (1) we eliminate the paranthetical from the reported error\nentirely; pydantic's intent is that that text is for machine processing\nof errors, and our customers are not machines. For (2) we introspect the\nmodel's module to determine when a location element is a model class\nname and remove it from the location when it is.\n\n As a bonus, we also condensed the array syntax in the reported location\nto use the more commonly known square brackets operator to report the\nindex.\n\nSigned-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>", "tree": {"sha": "6b56b3d8295db6753c26ce5f5b9cc37820ce4e9b", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/trees/6b56b3d8295db6753c26ce5f5b9cc37820ce4e9b"}, "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/commits/3c64da2a62d05300c21b04bb885fc934e92a0dd7", "comment_count": 0, "verification": {"verified": false, "reason": "unsigned", "signature": null, "payload": null, "verified_at": null}}, "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/commits/3c64da2a62d05300c21b04bb885fc934e92a0dd7", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/commit/3c64da2a62d05300c21b04bb885fc934e92a0dd7", "comments_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/commits/3c64da2a62d05300c21b04bb885fc934e92a0dd7/comments", "author": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "committer": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "parents": [{"sha": "a145a1ba018a3868229f183be8ba38927f6eab0a", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/commits/a145a1ba018a3868229f183be8ba38927f6eab0a", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/commit/a145a1ba018a3868229f183be8ba38927f6eab0a"}], "stats": {"total": 356, "additions": 354, "deletions": 2}, "files": [{"sha": "842051e39ead2f3892999867614591ad0271967b", "filename": "src/openjd/model/_convert_pydantic_error.py", "status": "added", "additions": 78, "deletions": 0, "changes": 78, "blob_url": "https://github.com/OpenJobDescription/openjd-model-for-python/blob/3c64da2a62d05300c21b04bb885fc934e92a0dd7/src%2Fopenjd%2Fmodel%2F_convert_pydantic_error.py", "raw_url": "https://github.com/OpenJobDescription/openjd-model-for-python/raw/3c64da2a62d05300c21b04bb885fc934e92a0dd7/src%2Fopenjd%2Fmodel%2F_convert_pydantic_error.py", "contents_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/contents/src%2Fopenjd%2Fmodel%2F_convert_pydantic_error.py?ref=3c64da2a62d05300c21b04bb885fc934e92a0dd7", "patch": "@@ -0,0 +1,78 @@\n+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n+\n+from typing import TypedDict, Union, Type\n+from pydantic import BaseModel\n+from inspect import getmodule\n+\n+# Calling pydantic's ValidationError.errors() returns a list[ErrorDict], but\n+# pydantic doesn't export the ErrorDict type publicly. So, we create it here for\n+# type checking.\n+# Note that we ignore the 'ctx' key since we don't use it.\n+# See: https://github.com/pydantic/pydantic/blob/d9c2af3a701ca982945a590de1a1da98b3fb4003/pydantic/error_wrappers.py#L50\n+Loc = tuple[Union[int, str], ...]\n+\n+\n+class ErrorDict(TypedDict):\n+    loc: Loc\n+    msg: str\n+    type: str\n+\n+\n+def pydantic_validationerrors_to_str(root_model: Type[BaseModel], errors: list[ErrorDict]) -> str:\n+    \"\"\"This is our own custom stringification of the Pydantic ValidationError to use\n+    in place of str(<ValidationError>). Pydantic's default stringification too verbose for\n+    our purpose, and contains information that we don't want.\n+    \"\"\"\n+    results = list[str]()\n+    for error in errors:\n+        results.append(_error_dict_to_str(root_model, error))\n+    return f\"{len(errors)} validation errors for {root_model.__name__}\\n\" + \"\\n\".join(results)\n+\n+\n+def _error_dict_to_str(root_model: Type[BaseModel], error: ErrorDict) -> str:\n+    loc = error[\"loc\"]\n+    msg = error[\"msg\"]\n+\n+    # When a model's root_validator raises an error other than a ValidationError\n+    # (i.e. raises something like a ValueError or a TypeError) then pydantic\n+    # reports the field name of the error as \"__root__\". We handle this specially\n+    # when printing errors out since there are no \"__root__\" fields in our models,\n+    # and we don't want to mislead or confuse customers.\n+    # \"__root__\" will *always* be the last element of the 'loc' if it is present, by\n+    # definition of how root validators work.\n+    #\n+    # We want errors from the base model's root validator to not be indented.\n+    # This conveys that the error isn't from a nested object.\n+    # eg.\n+    # ```\n+    # field -> inner:\n+    #    field missing\n+    # JobTemplate: must provide one of 'min' or 'max'\n+    # ```\n+    if loc == (\"__root__\",):\n+        return f\"{root_model.__name__}: {msg}\"\n+    return f\"{_loc_to_str(root_model, loc)}:\\n\\t{msg}\"\n+\n+\n+def _loc_to_str(root_model: Type[BaseModel], loc: Loc) -> str:\n+    model_module = getmodule(root_model)\n+\n+    # If a nested error is from a root validator, then just report the error as being\n+    # for the field that points to the object.\n+    if loc[-1] == \"__root__\":\n+        loc = loc[:-1]\n+\n+    loc_elements = list[str]()\n+    for item in loc:\n+        if isinstance(item, int):\n+            loc_elements[-1] = f\"{loc_elements[-1]}[{item}]\"\n+        elif item in model_module.__dict__:\n+            # If the name appears in the same module as the model then it is itself\n+            # a model. This means that it's inserted because we're somewhere within\n+            # a discriminated union; pydantic includes the name of the union class\n+            # in the loc when traversing through a discriminated union (but, oddly,\n+            # *only* when traversing through a discriminated union).\n+            pass\n+        else:\n+            loc_elements.append(item)\n+    return \" -> \".join(loc_elements)"}, {"sha": "1e3de6aa6f702b4ca65d42613c4bfaaf35bfe50b", "filename": "src/openjd/model/_create_job.py", "status": "modified", "additions": 6, "deletions": 1, "changes": 7, "blob_url": "https://github.com/OpenJobDescription/openjd-model-for-python/blob/3c64da2a62d05300c21b04bb885fc934e92a0dd7/src%2Fopenjd%2Fmodel%2F_create_job.py", "raw_url": "https://github.com/OpenJobDescription/openjd-model-for-python/raw/3c64da2a62d05300c21b04bb885fc934e92a0dd7/src%2Fopenjd%2Fmodel%2F_create_job.py", "contents_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/contents/src%2Fopenjd%2Fmodel%2F_create_job.py?ref=3c64da2a62d05300c21b04bb885fc934e92a0dd7", "patch": "@@ -16,6 +16,7 @@\n     ParameterValueType,\n     SchemaVersion,\n )\n+from ._convert_pydantic_error import pydantic_validationerrors_to_str, ErrorDict\n \n if TYPE_CHECKING:\n     # Avoiding a circular import that occurs when trying to import FormatString\n@@ -221,6 +222,10 @@ def create_job(*, job_template: JobTemplate, job_parameter_values: JobParameterV\n     try:\n         job = instantiate_model(job_template, symtab)\n     except ValidationError as exc:\n-        raise DecodeValidationError(str(exc))\n+        raise DecodeValidationError(\n+            pydantic_validationerrors_to_str(\n+                job_template.__class__, cast(list[ErrorDict], exc.errors())\n+            )\n+        )\n \n     return cast(Job, job)"}, {"sha": "921fd2be59e0a27ebbd5921140635c3088736053", "filename": "src/openjd/model/_parse.py", "status": "modified", "additions": 4, "deletions": 1, "changes": 5, "blob_url": "https://github.com/OpenJobDescription/openjd-model-for-python/blob/3c64da2a62d05300c21b04bb885fc934e92a0dd7/src%2Fopenjd%2Fmodel%2F_parse.py", "raw_url": "https://github.com/OpenJobDescription/openjd-model-for-python/raw/3c64da2a62d05300c21b04bb885fc934e92a0dd7/src%2Fopenjd%2Fmodel%2F_parse.py", "contents_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/contents/src%2Fopenjd%2Fmodel%2F_parse.py?ref=3c64da2a62d05300c21b04bb885fc934e92a0dd7", "patch": "@@ -11,6 +11,7 @@\n \n from ._errors import DecodeValidationError\n from ._types import JobTemplate, OpenJDModel, SchemaVersion\n+from ._convert_pydantic_error import pydantic_validationerrors_to_str, ErrorDict\n from .v2023_09 import JobTemplate as JobTemplate_2023_09\n \n __all__ = (\"parse_model\", \"document_string_to_object\", \"DocumentType\", \"decode_template\")\n@@ -44,7 +45,9 @@ def parse_model(*, model: Type[T], obj: Any) -> T:\n     try:\n         return _parse_model(model=model, obj=obj)\n     except PydanticValidationError as exc:\n-        raise DecodeValidationError(str(exc))\n+        raise DecodeValidationError(\n+            pydantic_validationerrors_to_str(model, cast(list[ErrorDict], exc.errors()))\n+        )\n \n \n def document_string_to_object(*, document: str, document_type: DocumentType) -> dict[str, Any]:"}, {"sha": "0993764145e584137aa8d025f6d8db01e5b663eb", "filename": "test/openjd/model/test_convert_pydantic_error.py", "status": "added", "additions": 243, "deletions": 0, "changes": 243, "blob_url": "https://github.com/OpenJobDescription/openjd-model-for-python/blob/3c64da2a62d05300c21b04bb885fc934e92a0dd7/test%2Fopenjd%2Fmodel%2Ftest_convert_pydantic_error.py", "raw_url": "https://github.com/OpenJobDescription/openjd-model-for-python/raw/3c64da2a62d05300c21b04bb885fc934e92a0dd7/test%2Fopenjd%2Fmodel%2Ftest_convert_pydantic_error.py", "contents_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/contents/test%2Fopenjd%2Fmodel%2Ftest_convert_pydantic_error.py?ref=3c64da2a62d05300c21b04bb885fc934e92a0dd7", "patch": "@@ -0,0 +1,243 @@\n+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n+\n+from pydantic import BaseModel, root_validator, Field\n+from typing import Literal, Union\n+\n+from openjd.model._convert_pydantic_error import (\n+    ErrorDict,\n+    pydantic_validationerrors_to_str,\n+    _error_dict_to_str,\n+)\n+\n+\n+class TestValidationErrorsToStr:\n+    def test(self) -> None:\n+        # Just making sure that pydantic_validationerrors_to_str()\n+        # prints out all of the given errors.\n+\n+        # GIVEN\n+        class Model(BaseModel):\n+            f1: str\n+            f2: int\n+\n+        errors: list[ErrorDict] = [\n+            {\"loc\": (\"f1\",), \"msg\": \"error message1\", \"type\": \"error-type\"},\n+            {\"loc\": (\"f2\",), \"msg\": \"error message2\", \"type\": \"error-type\"},\n+        ]\n+        expected = \"2 validation errors for Model\\nf1:\\n\\terror message1\\nf2:\\n\\terror message2\"\n+\n+        # WHEN\n+        result = pydantic_validationerrors_to_str(Model, errors)\n+\n+        # THEN\n+        assert result == expected\n+\n+\n+class TestSimpleModels:\n+    \"\"\"Tests of converting validation errors from \"simple\" models. These\n+    are models that contain no sequence types or unions as field types.\n+    \"\"\"\n+\n+    def test_single_level(self) -> None:\n+        # Make sure that our path to error is correct for a single-level\n+        # error\n+\n+        # GIVEN\n+        class Model(BaseModel):\n+            f1: str\n+            f2: int\n+\n+        error: ErrorDict = {\"loc\": (\"f2\",), \"msg\": \"error message\", \"type\": \"error-type\"}\n+        expected = \"f2:\\n\\terror message\"\n+\n+        # WHEN\n+        result = _error_dict_to_str(Model, error)\n+\n+        # THEN\n+        assert result == expected\n+\n+    def test_nesting_level(self) -> None:\n+        # Make sure that our path to error is correct for a multi-level\n+        # error\n+\n+        # GIVEN\n+        class Inner(BaseModel):\n+            ff: str\n+\n+        class Model(BaseModel):\n+            inner: Inner\n+\n+        error: ErrorDict = {\n+            \"loc\": (\n+                \"inner\",\n+                \"ff\",\n+            ),\n+            \"msg\": \"error message\",\n+            \"type\": \"error-type\",\n+        }\n+        expected = \"inner -> ff:\\n\\terror message\"\n+\n+        # WHEN\n+        result = _error_dict_to_str(Model, error)\n+\n+        # THEN\n+        assert result == expected\n+\n+    def test_base_root_validator_error(self) -> None:\n+        # Make sure that our path to error is correct for validation error\n+        # at the base level's root validator\n+        # This is a special case where we do not want the error message to be indented\n+        # at all. This conveys that the error is not nested.\n+        # Errors raised by a root validator have a special \"__root__\" field name\n+\n+        # GIVEN\n+        class Model(BaseModel):\n+            ff: str\n+\n+            @root_validator\n+            def _validate(cls, values):\n+                raise ValueError(\"error message\")\n+\n+        error: ErrorDict = {\"loc\": (\"__root__\",), \"msg\": \"error message\", \"type\": \"error-type\"}\n+        expected = \"Model: error message\"\n+\n+        # WHEN\n+        result = _error_dict_to_str(Model, error)\n+\n+        # THEN\n+        assert result == expected\n+\n+    def test_inner_root_validator_error(self) -> None:\n+        # Make sure that our path to error is correct for validation error\n+        # at a nested level's root validator.\n+        # In this case we drop the '__root__' field at the end and report the error\n+        # as being for the field one level up.\n+        # Errors raised by a root validator have a special \"__root__\" field name\n+\n+        # GIVEN\n+        class Inner(BaseModel):\n+            ff: str\n+\n+            @root_validator\n+            def _validate(cls, values):\n+                raise ValueError(\"error message\")\n+\n+        class Model(BaseModel):\n+            inner: Inner\n+\n+        error: ErrorDict = {\n+            \"loc\": (\n+                \"inner\",\n+                \"__root__\",\n+            ),\n+            \"msg\": \"error message\",\n+            \"type\": \"error-type\",\n+        }\n+        expected = \"inner:\\n\\terror message\"\n+\n+        # WHEN\n+        result = _error_dict_to_str(Model, error)\n+\n+        # THEN\n+        assert result == expected\n+\n+\n+class TestArrayFields:\n+    \"\"\"Testing that we print the locations of errors correctly when there are array\n+    fields in the model.\n+    \"\"\"\n+\n+    def test_scalar(self) -> None:\n+        # Test the case where there's an error in one of the elements of\n+        # a scalar array (e.g. its the wrong type)\n+\n+        # GIVEN\n+        class Model(BaseModel):\n+            field: list[int]\n+\n+        error: ErrorDict = {\n+            \"loc\": (\n+                \"field\",\n+                2,\n+            ),\n+            \"msg\": \"error message\",\n+            \"type\": \"error-type\",\n+        }\n+        expected = \"field[2]:\\n\\terror message\"\n+\n+        # WHEN\n+        result = _error_dict_to_str(Model, error)\n+\n+        # THEN\n+        assert result == expected\n+\n+    def test_inner_model(self) -> None:\n+        # Test the case where there's an error in one of the elements of\n+        # an array of models\n+\n+        # GIVEN\n+        class Inner(BaseModel):\n+            ff: int\n+\n+        class Model(BaseModel):\n+            inner: list[Inner]\n+\n+        error: ErrorDict = {\n+            \"loc\": (\n+                \"inner\",\n+                2,\n+                \"ff\",\n+            ),\n+            \"msg\": \"error message\",\n+            \"type\": \"error-type\",\n+        }\n+        expected = \"inner[2] -> ff:\\n\\terror message\"\n+\n+        # WHEN\n+        result = _error_dict_to_str(Model, error)\n+\n+        # THEN\n+        assert result == expected\n+\n+\n+# Due to the nature of how we defermine locations with discriminated unions,\n+# these classes *must* be defined in the module.\n+class UnionInner1(BaseModel):\n+    type: Literal[\"Inner1\"]\n+    ff: int\n+\n+\n+class UnionInner2(BaseModel):\n+    type: Literal[\"Inner2\"]\n+    ff: str\n+\n+\n+class UnionModel(BaseModel):\n+    inner: Union[UnionInner1, UnionInner2] = Field(..., discriminator=\"type\")\n+\n+\n+class TestDiscriminatedUnion:\n+    \"\"\"Testing that the location is correct in the presence of a discriminated union.\n+    When an error is through a discriminated union, pydantic will include the name\n+    of the union class type that contains the error as one of the location elements.\n+    \"\"\"\n+\n+    def test(self) -> None:\n+        # GIVEN\n+        error: ErrorDict = {\n+            \"loc\": (\n+                \"inner\",\n+                2,\n+                \"UnionInner1\",\n+                \"ff\",\n+            ),\n+            \"msg\": \"error message\",\n+            \"type\": \"error-type\",\n+        }\n+        expected = \"inner[2] -> ff:\\n\\terror message\"\n+\n+        # WHEN\n+        result = _error_dict_to_str(UnionModel, error)\n+\n+        # THEN\n+        assert result == expected"}, {"sha": "82f2a80cced44f00bd12b02b58928b97cc426284", "filename": "test/openjd/model/v2023_09/test_definitions.py", "status": "added", "additions": 23, "deletions": 0, "changes": 23, "blob_url": "https://github.com/OpenJobDescription/openjd-model-for-python/blob/3c64da2a62d05300c21b04bb885fc934e92a0dd7/test%2Fopenjd%2Fmodel%2Fv2023_09%2Ftest_definitions.py", "raw_url": "https://github.com/OpenJobDescription/openjd-model-for-python/raw/3c64da2a62d05300c21b04bb885fc934e92a0dd7/test%2Fopenjd%2Fmodel%2Fv2023_09%2Ftest_definitions.py", "contents_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/contents/test%2Fopenjd%2Fmodel%2Fv2023_09%2Ftest_definitions.py?ref=3c64da2a62d05300c21b04bb885fc934e92a0dd7", "patch": "@@ -0,0 +1,23 @@\n+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n+\n+import pytest\n+from pydantic import BaseModel\n+from typing import Type\n+import openjd.model.v2023_09 as mod\n+from inspect import getmembers, getmodule, isclass\n+\n+\n+ALL_MODELS = sorted(\n+    [obj for name, obj in getmembers(mod) if isclass(obj) and issubclass(obj, BaseModel)],\n+    key=lambda o: o.__name__,\n+)\n+\n+\n+@pytest.mark.parametrize(\"model\", ALL_MODELS)\n+def test_models_in_same_module(model: Type[BaseModel]) -> None:\n+    # For our error reporting of discriminated union fields to be correctly reported\n+    # we require that *all* of the models are defined in exactly the same module as the JobTemplate\n+    # model.\n+    # This is to identify when a name in an error location is actually a class name from\n+    # a typed union.\n+    assert getmodule(mod.JobTemplate) == getmodule(model)"}]}}
{"time": "2023-09-14T04:48:39+00:00", "type": "timeline:committed", "payload": {"sha": "3c64da2a62d05300c21b04bb885fc934e92a0dd7", "node_id": "C_kwDOKNhT9doAKDNjNjRkYTJhNjJkMDUzMDBjMjFiMDRiYjg4NWZjOTM0ZTkyYTBkZDc", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/commits/3c64da2a62d05300c21b04bb885fc934e92a0dd7", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/commit/3c64da2a62d05300c21b04bb885fc934e92a0dd7", "author": {"name": "Daniel Neilson", "email": "53624638+ddneilson@users.noreply.github.com", "date": "2023-09-14T04:48:39Z"}, "committer": {"name": "Daniel Neilson", "email": "53624638+ddneilson@users.noreply.github.com", "date": "2023-09-14T18:40:59Z"}, "tree": {"sha": "6b56b3d8295db6753c26ce5f5b9cc37820ce4e9b", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/trees/6b56b3d8295db6753c26ce5f5b9cc37820ce4e9b"}, "message": "feat: improve validation error messaging\n\nSummary:\n When validation errors are encountered the error string that we report\ncomes straight from pydantic and has two issues:\n1. It contains extra information that only serves to make it harder to\n   read. e.g. all of the parenthetical text in:\n```\nsteps -> 0 -> parameterSpace -> taskParameterDefinitions -> 0\n  Discriminator 'type' is missing in value (type=value_error.discriminated_union.missing_discriminator; discriminator_key=type)\n```\n2. The path-to-error contains the name of classes for discriminated\n   unions. e.g. The 'JobStringParameterDefinition' in:\n```\nparameterDefinitions -> 0 -> JobStringParameterDefinition -> userInterface -> control\n  value is not a valid enumeration member ...\n```\n\n We want a more succint and readable set of error messages.\n\nSolution:\n  For (1) we eliminate the paranthetical from the reported error\nentirely; pydantic's intent is that that text is for machine processing\nof errors, and our customers are not machines. For (2) we introspect the\nmodel's module to determine when a location element is a model class\nname and remove it from the location when it is.\n\n As a bonus, we also condensed the array syntax in the reported location\nto use the more commonly known square brackets operator to report the\nindex.\n\nSigned-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>", "parents": [{"sha": "a145a1ba018a3868229f183be8ba38927f6eab0a", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/commits/a145a1ba018a3868229f183be8ba38927f6eab0a", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/commit/a145a1ba018a3868229f183be8ba38927f6eab0a"}], "verification": {"verified": false, "reason": "unsigned", "signature": null, "payload": null, "verified_at": null}, "event": "committed"}}
{"time": "2023-09-14T13:35:26+00:00", "type": "pr", "payload": {"url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "id": 1515730197, "node_id": "PR_kwDOKNhT9c5aWDUV", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13", "diff_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13.diff", "patch_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13.patch", "issue_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/13", "number": 13, "state": "closed", "locked": false, "title": "feat: improve validation error messaging ", "user": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "Note: Draft until https://github.com/xxyggoqtpcmcofkc/openjd-model-for-python/pull/12 is merged.\r\n\r\n### What was the problem/requirement? (What/Why)\r\n\r\n When validation errors are encountered the error string that we report comes straight from pydantic and has two issues:\r\n1. It contains extra information that only serves to make it harder to  read. e.g. all of the parenthetical text in:\r\n```\r\nsteps -> 0 -> parameterSpace -> taskParameterDefinitions -> 0\r\n  Discriminator 'type' is missing in value (type=value_error.discriminated_union.missing_discriminator; discriminator_key=type)\r\n```\r\n2. The path-to-error contains the name of classes for discriminated  unions. e.g. The 'JobStringParameterDefinition' in:\r\n```\r\nparameterDefinitions -> 0 -> JobStringParameterDefinition -> userInterface -> control\r\n  value is not a valid enumeration member ...\r\n```\r\n\r\n We want a more succinct and readable set of error messages.\r\n\r\n### What was the solution? (How)\r\n\r\n  For (1) we eliminate the paranthetical from the reported error entirely; pydantic's intent is that that text is for machine processing of errors, and our customers are not machines. For (2) we introspect the model's module to determine when a location element is a model class name and remove it from the location when it is.\r\n\r\n As a bonus, we also condensed the array syntax in the reported location to use the more commonly known square brackets operator to report the index.\r\n\r\n### What is the impact of this change?\r\n\r\nI expect that customers will have an easier time reading and understanding the validation errors from their models. It's likely that we'll iterate on this a little more, but this is a good start to try out for a while.\r\n\r\n### How was this change tested?\r\n\r\nWe have our unit tests, but I also used the CLI to compare error messages before & after the change.\r\n\r\ne.g. Checking the job template:\r\n```\r\nspecificationVersion: 'jobtemplate-2023-09'\r\nname: Test template\r\nparameterDefinitions:\r\n  - name: LineEditControl\r\n    type: STRING\r\n    userInterface:\r\n      control: LINE__EDIT # LINE_EDIT\r\n      label: Line Edit Control\r\n      groupLabel: Text Controls\r\n    description: \"Unrestricted line of text!\"\r\n    default: Default line edit value.\r\n  - name: MultiLineEditControl\r\n    type: STRING\r\n    userInterface:\r\n      control: MULTILINE__EDIT # MULTILINE_EDIT\r\n      label: Multi-line Edit Control\r\n      groupLabel: Text Controls\r\n    description: \"Unrestricted text file\"\r\n    default: |\r\n      This is a\r\n      text file with\r\n      multiple lines.\r\n  - name: IntSpinner\r\n    # type: INT\r\n    userInterface:\r\n      control: SPIN_BOX\r\n      label: Default Int Spinner\r\n      groupLabel: Int Spinners\r\n    description: A default integer spinner.\r\n    default: 42\r\nsteps:\r\n- name: Step\r\n  parameterSpace:\r\n    taskParameterDefinitions:\r\n    - name: p1\r\n      # type: INT\r\n      range: 1-10\r\n    - name: p2\r\n      type: STRING\r\n      range:\r\n      - \"foo\"\r\n      - \"bar\"\r\n    - name: p3\r\n      type: FLOAT\r\n      # range: \r\n    - name: p4\r\n      type: INT\r\n      # range: \r\n  script:\r\n    embeddedFiles:\r\n      - name: runScript\r\n        type: TEXT\r\n        runnable: true\r\n        data: |\r\n          #!/usr/bin/env bash\r\n\r\n          echo 'LineEditControl value:'\r\n          echo '{{Param.LineEditControl}}'\r\n\r\n          echo 'ConstrainedLine value\"'\r\n          # For testing: This value doesn't exist\r\n          echo '{{Param.ConstrainedLine}}'\r\n\r\n          echo 'MultiLineEditControl value:'\r\n          echo '{{Param.MultiLineEditControl}}'\r\n\r\n    actions:\r\n      onRun:\r\n        command: '{{Task.File.runScript}}'\r\n```\r\n\r\nBefore (with https://github.com/xxyggoqtpcmcofkc/openjd-model-for-python/pull/12 applied):\r\n```\r\n% openjd check ../test.yaml           \r\nERROR: '../test.yaml' failed checks: 6 validation errors for JobTemplate\r\nsteps -> 0 -> parameterSpace -> taskParameterDefinitions -> 0\r\n  Discriminator 'type' is missing in value (type=value_error.discriminated_union.missing_discriminator; discriminator_key=type)\r\nsteps -> 0 -> parameterSpace -> taskParameterDefinitions -> 2 -> FloatTaskParameterDefinition -> range\r\n  field required (type=value_error.missing)\r\nsteps -> 0 -> parameterSpace -> taskParameterDefinitions -> 3 -> IntTaskParameterDefinition -> range\r\n  field required (type=value_error.missing)\r\nparameterDefinitions -> 0 -> JobStringParameterDefinition -> userInterface -> control\r\n  value is not a valid enumeration member; permitted: 'LINE_EDIT', 'MULTILINE_EDIT', 'DROPDOWN_LIST', 'CHECK_BOX', 'HIDDEN' (type=type_error.enum; enum_values=[<StringUserInterfaceControl.LINE_EDIT: 'LINE_EDIT'>, <StringUserInterfaceControl.MULTILINE_EDIT: 'MULTILINE_EDIT'>, <StringUserInterfaceControl.DROPDOWN_LIST: 'DROPDOWN_LIST'>, <StringUserInterfaceControl.CHECK_BOX: 'CHECK_BOX'>, <StringUserInterfaceControl.HIDDEN: 'HIDDEN'>])\r\nparameterDefinitions -> 1 -> JobStringParameterDefinition -> userInterface -> control\r\n  value is not a valid enumeration member; permitted: 'LINE_EDIT', 'MULTILINE_EDIT', 'DROPDOWN_LIST', 'CHECK_BOX', 'HIDDEN' (type=type_error.enum; enum_values=[<StringUserInterfaceControl.LINE_EDIT: 'LINE_EDIT'>, <StringUserInterfaceControl.MULTILINE_EDIT: 'MULTILINE_EDIT'>, <StringUserInterfaceControl.DROPDOWN_LIST: 'DROPDOWN_LIST'>, <StringUserInterfaceControl.CHECK_BOX: 'CHECK_BOX'>, <StringUserInterfaceControl.HIDDEN: 'HIDDEN'>])\r\nparameterDefinitions -> 2\r\n  Discriminator 'type' is missing in value (type=value_error.discriminated_union.missing_discriminator; discriminator_key=type)\r\n```\r\n\r\nAfter:\r\n```\r\n% openjd check ../test.yaml\r\nERROR: '../test.yaml' failed checks: \r\nsteps[0] -> parameterSpace -> taskParameterDefinitions[0]:\r\n        Discriminator 'type' is missing in value\r\nsteps[0] -> parameterSpace -> taskParameterDefinitions[2] -> range:\r\n        field required\r\nsteps[0] -> parameterSpace -> taskParameterDefinitions[3] -> range:\r\n        field required\r\nparameterDefinitions[0] -> userInterface -> control:\r\n        value is not a valid enumeration member; permitted: 'LINE_EDIT', 'MULTILINE_EDIT', 'DROPDOWN_LIST', 'CHECK_BOX', 'HIDDEN'\r\nparameterDefinitions[1] -> userInterface -> control:\r\n        value is not a valid enumeration member; permitted: 'LINE_EDIT', 'MULTILINE_EDIT', 'DROPDOWN_LIST', 'CHECK_BOX', 'HIDDEN'\r\nparameterDefinitions[2]:\r\n        Discriminator 'type' is missing in value\r\n```\r\n\r\nI also did a spot check with `openjd run` on the following template to ensure that the errors for instantiating a job also look correct:\r\n```\r\nspecificationVersion: jobtemplate-2023-09\r\nname: \"{{ Param.Name }}\"\r\nparameterDefinitions:\r\n  - name: Name\r\n    type: STRING\r\n    default: 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\r\nsteps:\r\n  - name: Step\r\n    script:\r\n      actions:\r\n        onRun:\r\n          command: echo\r\n          args:\r\n          - Hi\r\n```\r\n\r\n### Was this change documented?\r\n\r\nN/A\r\n\r\n### Is this a breaking change?\r\n\r\nNo\r\n\r\n----\r\n\r\n*By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.*", "created_at": "2023-09-14T13:35:26Z", "updated_at": "2023-09-15T14:40:33Z", "closed_at": "2023-09-15T14:40:30Z", "merged_at": "2023-09-15T14:40:30Z", "merge_commit_sha": "bc3497f9ff2fb1cbf50e686e05f290092b2cda9d", "assignees": [], "requested_reviewers": [], "requested_teams": [], "labels": [{"id": 5905988333, "node_id": "LA_kwDOKNhT9c8AAAABYAY67Q", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/labels/enhancement", "name": "enhancement", "color": "a2eeef", "default": true, "description": "New feature or request"}], "milestone": null, "draft": false, "commits_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13/commits", "review_comments_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13/comments", "review_comment_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments{/number}", "comments_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/13/comments", "statuses_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/statuses/3c64da2a62d05300c21b04bb885fc934e92a0dd7", "head": {"label": "OpenJobDescription:ddneilson/B9629_error_messages", "ref": "ddneilson/B9629_error_messages", "sha": "3c64da2a62d05300c21b04bb885fc934e92a0dd7", "user": {"login": "OpenJobDescription", "id": 142452466, "node_id": "O_kgDOCH2m8g", "avatar_url": "https://avatars.githubusercontent.com/u/142452466?v=4", "gravatar_id": "", "url": "https://api.github.com/users/OpenJobDescription", "html_url": "https://github.com/OpenJobDescription", "followers_url": "https://api.github.com/users/OpenJobDescription/followers", "following_url": "https://api.github.com/users/OpenJobDescription/following{/other_user}", "gists_url": "https://api.github.com/users/OpenJobDescription/gists{/gist_id}", "starred_url": "https://api.github.com/users/OpenJobDescription/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OpenJobDescription/subscriptions", "organizations_url": "https://api.github.com/users/OpenJobDescription/orgs", "repos_url": "https://api.github.com/users/OpenJobDescription/repos", "events_url": "https://api.github.com/users/OpenJobDescription/events{/privacy}", "received_events_url": "https://api.github.com/users/OpenJobDescription/received_events", "type": "Organization", "user_view_type": "public", "site_admin": false}, "repo": {"id": 685265909, "node_id": "R_kgDOKNhT9Q", "name": "openjd-model-for-python", "full_name": "OpenJobDescription/openjd-model-for-python", "private": false, "owner": {"login": "OpenJobDescription", "id": 142452466, "node_id": "O_kgDOCH2m8g", "avatar_url": "https://avatars.githubusercontent.com/u/142452466?v=4", "gravatar_id": "", "url": "https://api.github.com/users/OpenJobDescription", "html_url": "https://github.com/OpenJobDescription", "followers_url": "https://api.github.com/users/OpenJobDescription/followers", "following_url": "https://api.github.com/users/OpenJobDescription/following{/other_user}", "gists_url": "https://api.github.com/users/OpenJobDescription/gists{/gist_id}", "starred_url": "https://api.github.com/users/OpenJobDescription/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OpenJobDescription/subscriptions", "organizations_url": "https://api.github.com/users/OpenJobDescription/orgs", "repos_url": "https://api.github.com/users/OpenJobDescription/repos", "events_url": "https://api.github.com/users/OpenJobDescription/events{/privacy}", "received_events_url": "https://api.github.com/users/OpenJobDescription/received_events", "type": "Organization", "user_view_type": "public", "site_admin": false}, "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python", "description": "Provides a Python implementation of the data model for Open Job Description's template schemas.", "fork": false, "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python", "forks_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/forks", "keys_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/keys{/key_id}", "collaborators_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/collaborators{/collaborator}", "teams_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/teams", "hooks_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/hooks", "issue_events_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events{/number}", "events_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/events", "assignees_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/assignees{/user}", "branches_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/branches{/branch}", "tags_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/tags", "blobs_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/blobs{/sha}", "git_tags_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/tags{/sha}", "git_refs_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/refs{/sha}", "trees_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/trees{/sha}", "statuses_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/statuses/{sha}", "languages_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/languages", "stargazers_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/stargazers", "contributors_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/contributors", "subscribers_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/subscribers", "subscription_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/subscription", "commits_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/commits{/sha}", "git_commits_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/commits{/sha}", "comments_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/comments{/number}", "issue_comment_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/comments{/number}", "contents_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/contents/{+path}", "compare_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/compare/{base}...{head}", "merges_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/merges", "archive_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/{archive_format}{/ref}", "downloads_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/downloads", "issues_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues{/number}", "pulls_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls{/number}", "milestones_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/milestones{/number}", "notifications_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/notifications{?since,all,participating}", "labels_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/labels{/name}", "releases_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/releases{/id}", "deployments_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/deployments", "created_at": "2023-08-30T21:28:48Z", "updated_at": "2026-05-19T19:09:34Z", "pushed_at": "2026-05-19T19:09:34Z", "git_url": "git://github.com/OpenJobDescription/openjd-model-for-python.git", "ssh_url": "git@github.com:OpenJobDescription/openjd-model-for-python.git", "clone_url": "https://github.com/OpenJobDescription/openjd-model-for-python.git", "svn_url": "https://github.com/OpenJobDescription/openjd-model-for-python", "homepage": "https://github.com/OpenJobDescription/openjd-specifications/wiki", "size": 488, "stargazers_count": 12, "watchers_count": 12, "language": "Python", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": false, "has_pages": false, "has_discussions": false, "forks_count": 20, "mirror_url": null, "archived": false, "disabled": false, "open_issues_count": 9, "license": {"key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0", "node_id": "MDc6TGljZW5zZTI="}, "allow_forking": true, "is_template": false, "web_commit_signoff_required": false, "has_pull_requests": true, "pull_request_creation_policy": "all", "topics": [], "visibility": "public", "forks": 20, "open_issues": 9, "watchers": 12, "default_branch": "mainline"}}, "base": {"label": "OpenJobDescription:mainline", "ref": "mainline", "sha": "a145a1ba018a3868229f183be8ba38927f6eab0a", "user": {"login": "OpenJobDescription", "id": 142452466, "node_id": "O_kgDOCH2m8g", "avatar_url": "https://avatars.githubusercontent.com/u/142452466?v=4", "gravatar_id": "", "url": "https://api.github.com/users/OpenJobDescription", "html_url": "https://github.com/OpenJobDescription", "followers_url": "https://api.github.com/users/OpenJobDescription/followers", "following_url": "https://api.github.com/users/OpenJobDescription/following{/other_user}", "gists_url": "https://api.github.com/users/OpenJobDescription/gists{/gist_id}", "starred_url": "https://api.github.com/users/OpenJobDescription/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OpenJobDescription/subscriptions", "organizations_url": "https://api.github.com/users/OpenJobDescription/orgs", "repos_url": "https://api.github.com/users/OpenJobDescription/repos", "events_url": "https://api.github.com/users/OpenJobDescription/events{/privacy}", "received_events_url": "https://api.github.com/users/OpenJobDescription/received_events", "type": "Organization", "user_view_type": "public", "site_admin": false}, "repo": {"id": 685265909, "node_id": "R_kgDOKNhT9Q", "name": "openjd-model-for-python", "full_name": "OpenJobDescription/openjd-model-for-python", "private": false, "owner": {"login": "OpenJobDescription", "id": 142452466, "node_id": "O_kgDOCH2m8g", "avatar_url": "https://avatars.githubusercontent.com/u/142452466?v=4", "gravatar_id": "", "url": "https://api.github.com/users/OpenJobDescription", "html_url": "https://github.com/OpenJobDescription", "followers_url": "https://api.github.com/users/OpenJobDescription/followers", "following_url": "https://api.github.com/users/OpenJobDescription/following{/other_user}", "gists_url": "https://api.github.com/users/OpenJobDescription/gists{/gist_id}", "starred_url": "https://api.github.com/users/OpenJobDescription/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/OpenJobDescription/subscriptions", "organizations_url": "https://api.github.com/users/OpenJobDescription/orgs", "repos_url": "https://api.github.com/users/OpenJobDescription/repos", "events_url": "https://api.github.com/users/OpenJobDescription/events{/privacy}", "received_events_url": "https://api.github.com/users/OpenJobDescription/received_events", "type": "Organization", "user_view_type": "public", "site_admin": false}, "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python", "description": "Provides a Python implementation of the data model for Open Job Description's template schemas.", "fork": false, "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python", "forks_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/forks", "keys_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/keys{/key_id}", "collaborators_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/collaborators{/collaborator}", "teams_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/teams", "hooks_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/hooks", "issue_events_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events{/number}", "events_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/events", "assignees_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/assignees{/user}", "branches_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/branches{/branch}", "tags_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/tags", "blobs_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/blobs{/sha}", "git_tags_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/tags{/sha}", "git_refs_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/refs{/sha}", "trees_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/trees{/sha}", "statuses_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/statuses/{sha}", "languages_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/languages", "stargazers_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/stargazers", "contributors_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/contributors", "subscribers_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/subscribers", "subscription_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/subscription", "commits_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/commits{/sha}", "git_commits_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/git/commits{/sha}", "comments_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/comments{/number}", "issue_comment_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/comments{/number}", "contents_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/contents/{+path}", "compare_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/compare/{base}...{head}", "merges_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/merges", "archive_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/{archive_format}{/ref}", "downloads_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/downloads", "issues_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues{/number}", "pulls_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls{/number}", "milestones_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/milestones{/number}", "notifications_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/notifications{?since,all,participating}", "labels_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/labels{/name}", "releases_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/releases{/id}", "deployments_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/deployments", "created_at": "2023-08-30T21:28:48Z", "updated_at": "2026-05-19T19:09:34Z", "pushed_at": "2026-05-19T19:09:34Z", "git_url": "git://github.com/OpenJobDescription/openjd-model-for-python.git", "ssh_url": "git@github.com:OpenJobDescription/openjd-model-for-python.git", "clone_url": "https://github.com/OpenJobDescription/openjd-model-for-python.git", "svn_url": "https://github.com/OpenJobDescription/openjd-model-for-python", "homepage": "https://github.com/OpenJobDescription/openjd-specifications/wiki", "size": 488, "stargazers_count": 12, "watchers_count": 12, "language": "Python", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": false, "has_pages": false, "has_discussions": false, "forks_count": 20, "mirror_url": null, "archived": false, "disabled": false, "open_issues_count": 9, "license": {"key": "apache-2.0", "name": "Apache License 2.0", "spdx_id": "Apache-2.0", "url": "https://api.github.com/licenses/apache-2.0", "node_id": "MDc6TGljZW5zZTI="}, "allow_forking": true, "is_template": false, "web_commit_signoff_required": false, "has_pull_requests": true, "pull_request_creation_policy": "all", "topics": [], "visibility": "public", "forks": 20, "open_issues": 9, "watchers": 12, "default_branch": "mainline"}}, "_links": {"self": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}, "html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13"}, "issue": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/13"}, "comments": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/13/comments"}, "review_comments": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13/comments"}, "review_comment": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments{/number}"}, "commits": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13/commits"}, "statuses": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/statuses/3c64da2a62d05300c21b04bb885fc934e92a0dd7"}}, "author_association": "CONTRIBUTOR", "auto_merge": null, "assignee": null, "active_lock_reason": null, "merged": true, "mergeable": null, "rebaseable": null, "mergeable_state": "unknown", "merged_by": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "comments": 0, "review_comments": 3, "maintainer_can_modify": false, "commits": 1, "additions": 354, "deletions": 2, "changed_files": 5}}
{"time": "2023-09-14T17:50:28+00:00", "type": "review", "payload": {"id": 1627461020, "node_id": "PRR_kwDOKNhT9c5hARWc", "user": {"login": "mwiebe", "id": 399551, "node_id": "MDQ6VXNlcjM5OTU1MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/399551?u=d4a592a0763568448a8eaa06b680ee9584a8c6e0&v=4", "gravatar_id": "", "url": "https://api.github.com/users/mwiebe", "html_url": "https://github.com/mwiebe", "followers_url": "https://api.github.com/users/mwiebe/followers", "following_url": "https://api.github.com/users/mwiebe/following{/other_user}", "gists_url": "https://api.github.com/users/mwiebe/gists{/gist_id}", "starred_url": "https://api.github.com/users/mwiebe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mwiebe/subscriptions", "organizations_url": "https://api.github.com/users/mwiebe/orgs", "repos_url": "https://api.github.com/users/mwiebe/repos", "events_url": "https://api.github.com/users/mwiebe/events{/privacy}", "received_events_url": "https://api.github.com/users/mwiebe/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "", "state": "COMMENTED", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627461020", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "author_association": "CONTRIBUTOR", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627461020"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-14T17:50:28Z", "commit_id": "11197f347c665a121daa68647f0ad6bf8864f847"}}
{"time": "2023-09-14T17:50:28+00:00", "type": "review_comment", "payload": {"url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments/1326328619", "pull_request_review_id": 1627461020, "id": 1326328619, "node_id": "PRRC_kwDOKNhT9c5PDisr", "diff_hunk": "@@ -0,0 +1,78 @@\n+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n+\n+from typing import TypedDict, Union, Type\n+from pydantic import BaseModel\n+from inspect import getmodule\n+\n+# Calling pydantic's ValidationError.errors() returns a list[ErrorDict], but\n+# pydantic doesn't export the ErrorDict type publicly. So, we create it here for\n+# type checking.\n+# Note that we ignore the 'ctx' key since we don't use it.\n+# See: https://github.com/pydantic/pydantic/blob/d9c2af3a701ca982945a590de1a1da98b3fb4003/pydantic/error_wrappers.py#L50\n+Loc = tuple[Union[int, str], ...]\n+\n+\n+class ErrorDict(TypedDict):\n+    loc: Loc\n+    msg: str\n+    type: str\n+\n+\n+def pydantic_validationerrors_to_str(root_model: Type[BaseModel], errors: list[ErrorDict]) -> str:\n+    \"\"\"This is our own custom stringification of the Pydantic ValidationError to use\n+    in place of str(<ValidationError>). Pydantic's default stringification too verbose for\n+    our purpose, and contains information that we don't want.\n+    \"\"\"\n+    results = list[str]()\n+    for error in errors:\n+        results.append(_error_dict_to_str(root_model, error))\n+    return \"\\n\".join(results)\n+\n+\n+def _error_dict_to_str(root_model: Type[BaseModel], error: ErrorDict) -> str:\n+    loc = error[\"loc\"]\n+    msg = error[\"msg\"]\n+\n+    # When a model's root_validator raises an error other than a ValidationError\n+    # (i.e. raises something like a ValueError or a TypeError) then pydantic\n+    # reports the field name of the error as \"__root__\". We handle this specially\n+    # when printing errors out since there are no \"__root__\" fields in our models,\n+    # and we don't want to mislead or confuse customers.\n+    # \"__root__\" will *always* be the last element of the 'loc' if it is present, by\n+    # definition of how root validators work.\n+    #\n+    # We want errors from the base model's root validator to not be indented.\n+    # This conveys that the error isn't from a nested object.\n+    # eg.\n+    # ```\n+    # field -> inner:\n+    #    field missing\n+    # JobTemplate: must provide one of 'min' or 'max'\n+    # ```\n+    if loc == (\"__root__\",):\n+        return f\"{root_model.__name__}: {msg}\"\n+    return f\"{_loc_to_str(root_model, loc)}:\\n\\t{msg}\"\n+\n+\n+def _loc_to_str(root_model: Type[BaseModel], loc: Loc) -> str:\n+    model_module = getmodule(root_model)\n+\n+    # If a nested error is from a root validator, then just report the error as being\n+    # for the field that points to the object.\n+    if loc[-1] == \"__root__\":\n+        loc = loc[:-1]\n+\n+    loc_elements = list[str]()\n+    for item in loc:\n+        if isinstance(item, int):\n+            loc_elements[-1] = f\"{loc_elements[-1]}[{item}]\"", "path": "src/openjd/model/_convert_pydantic_error.py", "commit_id": "3c64da2a62d05300c21b04bb885fc934e92a0dd7", "original_commit_id": "11197f347c665a121daa68647f0ad6bf8864f847", "user": {"login": "mwiebe", "id": 399551, "node_id": "MDQ6VXNlcjM5OTU1MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/399551?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mwiebe", "html_url": "https://github.com/mwiebe", "followers_url": "https://api.github.com/users/mwiebe/followers", "following_url": "https://api.github.com/users/mwiebe/following{/other_user}", "gists_url": "https://api.github.com/users/mwiebe/gists{/gist_id}", "starred_url": "https://api.github.com/users/mwiebe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mwiebe/subscriptions", "organizations_url": "https://api.github.com/users/mwiebe/orgs", "repos_url": "https://api.github.com/users/mwiebe/repos", "events_url": "https://api.github.com/users/mwiebe/events{/privacy}", "received_events_url": "https://api.github.com/users/mwiebe/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "When there are a large number of parameters, this will be \"parameterDefinition[24]\" out of 42 parameters. Now I go back to the template and need to find the 25th entry.\r\n\r\nCan we also traverse the model itself, extract the \"name\" attribute from there when it exists, and make this \"parameteDefinition[25] (cameraForLayer5)\" so that the user can now search for the parameter called \"cameraForLayer5\"?", "created_at": "2023-09-14T17:50:28Z", "updated_at": "2023-09-14T17:50:28Z", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#discussion_r1326328619", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "_links": {"self": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments/1326328619"}, "html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#discussion_r1326328619"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "reactions": {"url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments/1326328619/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}, "start_line": null, "original_start_line": null, "start_side": null, "line": 68, "original_line": 68, "side": "RIGHT", "author_association": "CONTRIBUTOR", "original_position": 68, "position": 68, "subject_type": "line"}}
{"time": "2023-09-14T17:50:28+00:00", "type": "timeline:reviewed", "payload": {"id": 1627461020, "node_id": "PRR_kwDOKNhT9c5hARWc", "user": {"login": "mwiebe", "id": 399551, "node_id": "MDQ6VXNlcjM5OTU1MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/399551?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mwiebe", "html_url": "https://github.com/mwiebe", "followers_url": "https://api.github.com/users/mwiebe/followers", "following_url": "https://api.github.com/users/mwiebe/following{/other_user}", "gists_url": "https://api.github.com/users/mwiebe/gists{/gist_id}", "starred_url": "https://api.github.com/users/mwiebe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mwiebe/subscriptions", "organizations_url": "https://api.github.com/users/mwiebe/orgs", "repos_url": "https://api.github.com/users/mwiebe/repos", "events_url": "https://api.github.com/users/mwiebe/events{/privacy}", "received_events_url": "https://api.github.com/users/mwiebe/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": null, "commit_id": "11197f347c665a121daa68647f0ad6bf8864f847", "state": "commented", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627461020", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627461020"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-14T17:50:28Z", "updated_at": "2023-09-14T17:50:28Z", "author_association": "CONTRIBUTOR", "event": "reviewed"}}
{"time": "2023-09-14T17:57:57+00:00", "type": "review", "payload": {"id": 1627472804, "node_id": "PRR_kwDOKNhT9c5hAUOk", "user": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "", "state": "COMMENTED", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627472804", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "author_association": "CONTRIBUTOR", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627472804"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-14T17:57:57Z", "commit_id": "11197f347c665a121daa68647f0ad6bf8864f847"}}
{"time": "2023-09-14T17:57:57+00:00", "type": "review_comment", "payload": {"url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments/1326336373", "pull_request_review_id": 1627472804, "id": 1326336373, "node_id": "PRRC_kwDOKNhT9c5PDkl1", "diff_hunk": "@@ -0,0 +1,78 @@\n+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n+\n+from typing import TypedDict, Union, Type\n+from pydantic import BaseModel\n+from inspect import getmodule\n+\n+# Calling pydantic's ValidationError.errors() returns a list[ErrorDict], but\n+# pydantic doesn't export the ErrorDict type publicly. So, we create it here for\n+# type checking.\n+# Note that we ignore the 'ctx' key since we don't use it.\n+# See: https://github.com/pydantic/pydantic/blob/d9c2af3a701ca982945a590de1a1da98b3fb4003/pydantic/error_wrappers.py#L50\n+Loc = tuple[Union[int, str], ...]\n+\n+\n+class ErrorDict(TypedDict):\n+    loc: Loc\n+    msg: str\n+    type: str\n+\n+\n+def pydantic_validationerrors_to_str(root_model: Type[BaseModel], errors: list[ErrorDict]) -> str:\n+    \"\"\"This is our own custom stringification of the Pydantic ValidationError to use\n+    in place of str(<ValidationError>). Pydantic's default stringification too verbose for\n+    our purpose, and contains information that we don't want.\n+    \"\"\"\n+    results = list[str]()\n+    for error in errors:\n+        results.append(_error_dict_to_str(root_model, error))\n+    return \"\\n\".join(results)\n+\n+\n+def _error_dict_to_str(root_model: Type[BaseModel], error: ErrorDict) -> str:\n+    loc = error[\"loc\"]\n+    msg = error[\"msg\"]\n+\n+    # When a model's root_validator raises an error other than a ValidationError\n+    # (i.e. raises something like a ValueError or a TypeError) then pydantic\n+    # reports the field name of the error as \"__root__\". We handle this specially\n+    # when printing errors out since there are no \"__root__\" fields in our models,\n+    # and we don't want to mislead or confuse customers.\n+    # \"__root__\" will *always* be the last element of the 'loc' if it is present, by\n+    # definition of how root validators work.\n+    #\n+    # We want errors from the base model's root validator to not be indented.\n+    # This conveys that the error isn't from a nested object.\n+    # eg.\n+    # ```\n+    # field -> inner:\n+    #    field missing\n+    # JobTemplate: must provide one of 'min' or 'max'\n+    # ```\n+    if loc == (\"__root__\",):\n+        return f\"{root_model.__name__}: {msg}\"\n+    return f\"{_loc_to_str(root_model, loc)}:\\n\\t{msg}\"\n+\n+\n+def _loc_to_str(root_model: Type[BaseModel], loc: Loc) -> str:\n+    model_module = getmodule(root_model)\n+\n+    # If a nested error is from a root validator, then just report the error as being\n+    # for the field that points to the object.\n+    if loc[-1] == \"__root__\":\n+        loc = loc[:-1]\n+\n+    loc_elements = list[str]()\n+    for item in loc:\n+        if isinstance(item, int):\n+            loc_elements[-1] = f\"{loc_elements[-1]}[{item}]\"", "path": "src/openjd/model/_convert_pydantic_error.py", "commit_id": "3c64da2a62d05300c21b04bb885fc934e92a0dd7", "original_commit_id": "11197f347c665a121daa68647f0ad6bf8864f847", "user": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "Yeah, I completely agree. It's a bit trickier to do that as it involves recursing through the model definitions and may not always work. I have a separate ticket to dig in to this particular improvement.", "created_at": "2023-09-14T17:57:57Z", "updated_at": "2023-09-14T17:57:57Z", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#discussion_r1326336373", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "_links": {"self": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments/1326336373"}, "html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#discussion_r1326336373"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "reactions": {"url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments/1326336373/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}, "start_line": null, "original_start_line": null, "start_side": null, "line": 68, "original_line": 68, "side": "RIGHT", "in_reply_to_id": 1326328619, "author_association": "CONTRIBUTOR", "original_position": 68, "position": 68, "subject_type": "line"}}
{"time": "2023-09-14T18:09:20+00:00", "type": "timeline:head_ref_force_pushed", "payload": {"id": 10375452937, "node_id": "HRFPE_lADOKNhT9c5xC7pazwAAAAJqbNkJ", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10375452937", "actor": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "head_ref_force_pushed", "commit_id": "533b04c80548377c54fc5ab545033bb91f3ee573", "commit_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/commits/533b04c80548377c54fc5ab545033bb91f3ee573", "created_at": "2023-09-14T18:09:20Z", "performed_via_github_app": null}}
{"time": "2023-09-14T18:09:36+00:00", "type": "timeline:ready_for_review", "payload": {"id": 10375454989, "node_id": "RFRE_lADOKNhT9c5xC7pazwAAAAJqbOEN", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10375454989", "actor": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "ready_for_review", "commit_id": null, "commit_url": null, "created_at": "2023-09-14T18:09:36Z", "performed_via_github_app": null}}
{"time": "2023-09-14T18:09:37+00:00", "type": "timeline:review_requested", "payload": {"id": 10375455068, "node_id": "RRE_lADOKNhT9c5xC7pazwAAAAJqbOFc", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10375455068", "actor": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "review_requested", "commit_id": null, "commit_url": null, "created_at": "2023-09-14T18:09:37Z", "review_requester": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "requested_team": {"name": "Developers", "id": 8513209, "node_id": "T_kwDOCH2m8s4Agea5", "slug": "developers", "description": "", "privacy": "closed", "notification_setting": "notifications_enabled", "url": "https://api.github.com/organizations/142452466/team/8513209", "html_url": "https://github.com/orgs/OpenJobDescription/teams/developers", "members_url": "https://api.github.com/organizations/142452466/team/8513209/members{/member}", "repositories_url": "https://api.github.com/organizations/142452466/team/8513209/repos", "type": "organization", "organization_id": 142452466, "permission": "push", "permissions": {"admin": false, "maintain": false, "push": true, "triage": true, "pull": true}, "parent": null}, "performed_via_github_app": null}}
{"time": "2023-09-14T18:25:33+00:00", "type": "timeline:head_ref_force_pushed", "payload": {"id": 10375586196, "node_id": "HRFPE_lADOKNhT9c5xC7pazwAAAAJqbuGU", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10375586196", "actor": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "head_ref_force_pushed", "commit_id": "0ea0936c3617d48baf2ae201b11f70166c822163", "commit_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/commits/0ea0936c3617d48baf2ae201b11f70166c822163", "created_at": "2023-09-14T18:25:33Z", "performed_via_github_app": null}}
{"time": "2023-09-14T18:35:00+00:00", "type": "review", "payload": {"id": 1627533379, "node_id": "PRR_kwDOKNhT9c5hAjBD", "user": {"login": "mwiebe", "id": 399551, "node_id": "MDQ6VXNlcjM5OTU1MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/399551?u=d4a592a0763568448a8eaa06b680ee9584a8c6e0&v=4", "gravatar_id": "", "url": "https://api.github.com/users/mwiebe", "html_url": "https://github.com/mwiebe", "followers_url": "https://api.github.com/users/mwiebe/followers", "following_url": "https://api.github.com/users/mwiebe/following{/other_user}", "gists_url": "https://api.github.com/users/mwiebe/gists{/gist_id}", "starred_url": "https://api.github.com/users/mwiebe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mwiebe/subscriptions", "organizations_url": "https://api.github.com/users/mwiebe/orgs", "repos_url": "https://api.github.com/users/mwiebe/repos", "events_url": "https://api.github.com/users/mwiebe/events{/privacy}", "received_events_url": "https://api.github.com/users/mwiebe/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "", "state": "DISMISSED", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627533379", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "author_association": "CONTRIBUTOR", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627533379"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-14T18:35:00Z", "commit_id": "0ea0936c3617d48baf2ae201b11f70166c822163"}}
{"time": "2023-09-14T18:35:00+00:00", "type": "timeline:reviewed", "payload": {"id": 1627533379, "node_id": "PRR_kwDOKNhT9c5hAjBD", "user": {"login": "mwiebe", "id": 399551, "node_id": "MDQ6VXNlcjM5OTU1MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/399551?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mwiebe", "html_url": "https://github.com/mwiebe", "followers_url": "https://api.github.com/users/mwiebe/followers", "following_url": "https://api.github.com/users/mwiebe/following{/other_user}", "gists_url": "https://api.github.com/users/mwiebe/gists{/gist_id}", "starred_url": "https://api.github.com/users/mwiebe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mwiebe/subscriptions", "organizations_url": "https://api.github.com/users/mwiebe/orgs", "repos_url": "https://api.github.com/users/mwiebe/repos", "events_url": "https://api.github.com/users/mwiebe/events{/privacy}", "received_events_url": "https://api.github.com/users/mwiebe/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "", "commit_id": "0ea0936c3617d48baf2ae201b11f70166c822163", "state": "dismissed", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627533379", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627533379"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-14T18:35:00Z", "updated_at": "2023-09-14T18:41:11Z", "author_association": "CONTRIBUTOR", "event": "reviewed"}}
{"time": "2023-09-14T18:38:22+00:00", "type": "review", "payload": {"id": 1627538190, "node_id": "PRR_kwDOKNhT9c5hAkMO", "user": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "", "state": "COMMENTED", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627538190", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "author_association": "CONTRIBUTOR", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627538190"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-14T18:38:22Z", "commit_id": "0ea0936c3617d48baf2ae201b11f70166c822163"}}
{"time": "2023-09-14T18:38:22+00:00", "type": "review_comment", "payload": {"url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments/1326376819", "pull_request_review_id": 1627538190, "id": 1326376819, "node_id": "PRRC_kwDOKNhT9c5PDudz", "diff_hunk": "@@ -0,0 +1,78 @@\n+# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n+\n+from typing import TypedDict, Union, Type\n+from pydantic import BaseModel\n+from inspect import getmodule\n+\n+# Calling pydantic's ValidationError.errors() returns a list[ErrorDict], but\n+# pydantic doesn't export the ErrorDict type publicly. So, we create it here for\n+# type checking.\n+# Note that we ignore the 'ctx' key since we don't use it.\n+# See: https://github.com/pydantic/pydantic/blob/d9c2af3a701ca982945a590de1a1da98b3fb4003/pydantic/error_wrappers.py#L50\n+Loc = tuple[Union[int, str], ...]\n+\n+\n+class ErrorDict(TypedDict):\n+    loc: Loc\n+    msg: str\n+    type: str\n+\n+\n+def pydantic_validationerrors_to_str(root_model: Type[BaseModel], errors: list[ErrorDict]) -> str:\n+    \"\"\"This is our own custom stringification of the Pydantic ValidationError to use\n+    in place of str(<ValidationError>). Pydantic's default stringification too verbose for\n+    our purpose, and contains information that we don't want.\n+    \"\"\"\n+    results = list[str]()\n+    for error in errors:\n+        results.append(_error_dict_to_str(root_model, error))\n+    return \"\\n\".join(results)", "path": "src/openjd/model/_convert_pydantic_error.py", "commit_id": "3c64da2a62d05300c21b04bb885fc934e92a0dd7", "original_commit_id": "0ea0936c3617d48baf2ae201b11f70166c822163", "user": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "Hrm. This should be:\r\n```\r\nreturn f\"{len(errors)} validation errors for {root_model.__name__}\\n\" + \"\\n\".join(results)\r\n```\r\n\r\nI'll update", "created_at": "2023-09-14T18:38:22Z", "updated_at": "2023-09-14T18:38:22Z", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#discussion_r1326376819", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "_links": {"self": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments/1326376819"}, "html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#discussion_r1326376819"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "reactions": {"url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/comments/1326376819/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}, "start_line": null, "original_start_line": null, "start_side": null, "line": null, "original_line": 29, "side": "RIGHT", "author_association": "CONTRIBUTOR", "original_position": 29, "position": 1, "subject_type": "line"}}
{"time": "2023-09-14T18:38:22+00:00", "type": "timeline:reviewed", "payload": {"id": 1627538190, "node_id": "PRR_kwDOKNhT9c5hAkMO", "user": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": null, "commit_id": "0ea0936c3617d48baf2ae201b11f70166c822163", "state": "commented", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627538190", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627538190"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-14T18:38:22Z", "updated_at": "2023-09-14T18:38:22Z", "author_association": "CONTRIBUTOR", "event": "reviewed"}}
{"time": "2023-09-14T18:41:11+00:00", "type": "timeline:review_dismissed", "payload": {"id": 10375714387, "node_id": "RDE_lADOKNhT9c5xC7pazwAAAAJqcNZT", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10375714387", "actor": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "review_dismissed", "commit_id": null, "commit_url": null, "created_at": "2023-09-14T18:41:11Z", "dismissed_review": {"state": "approved", "review_id": 1627533379, "dismissal_message": null, "dismissal_commit_id": "3c64da2a62d05300c21b04bb885fc934e92a0dd7"}, "performed_via_github_app": null}}
{"time": "2023-09-14T18:41:12+00:00", "type": "timeline:head_ref_force_pushed", "payload": {"id": 10375714396, "node_id": "HRFPE_lADOKNhT9c5xC7pazwAAAAJqcNZc", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10375714396", "actor": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "head_ref_force_pushed", "commit_id": "3c64da2a62d05300c21b04bb885fc934e92a0dd7", "commit_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/commits/3c64da2a62d05300c21b04bb885fc934e92a0dd7", "created_at": "2023-09-14T18:41:12Z", "performed_via_github_app": null}}
{"time": "2023-09-14T21:40:47+00:00", "type": "review", "payload": {"id": 1627791749, "node_id": "PRR_kwDOKNhT9c5hBiGF", "user": {"login": "mwiebe", "id": 399551, "node_id": "MDQ6VXNlcjM5OTU1MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/399551?u=d4a592a0763568448a8eaa06b680ee9584a8c6e0&v=4", "gravatar_id": "", "url": "https://api.github.com/users/mwiebe", "html_url": "https://github.com/mwiebe", "followers_url": "https://api.github.com/users/mwiebe/followers", "following_url": "https://api.github.com/users/mwiebe/following{/other_user}", "gists_url": "https://api.github.com/users/mwiebe/gists{/gist_id}", "starred_url": "https://api.github.com/users/mwiebe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mwiebe/subscriptions", "organizations_url": "https://api.github.com/users/mwiebe/orgs", "repos_url": "https://api.github.com/users/mwiebe/repos", "events_url": "https://api.github.com/users/mwiebe/events{/privacy}", "received_events_url": "https://api.github.com/users/mwiebe/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "", "state": "APPROVED", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627791749", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "author_association": "CONTRIBUTOR", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627791749"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-14T21:40:47Z", "commit_id": "3c64da2a62d05300c21b04bb885fc934e92a0dd7"}}
{"time": "2023-09-14T21:40:47+00:00", "type": "timeline:reviewed", "payload": {"id": 1627791749, "node_id": "PRR_kwDOKNhT9c5hBiGF", "user": {"login": "mwiebe", "id": 399551, "node_id": "MDQ6VXNlcjM5OTU1MQ==", "avatar_url": "https://avatars.githubusercontent.com/u/399551?v=4", "gravatar_id": "", "url": "https://api.github.com/users/mwiebe", "html_url": "https://github.com/mwiebe", "followers_url": "https://api.github.com/users/mwiebe/followers", "following_url": "https://api.github.com/users/mwiebe/following{/other_user}", "gists_url": "https://api.github.com/users/mwiebe/gists{/gist_id}", "starred_url": "https://api.github.com/users/mwiebe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mwiebe/subscriptions", "organizations_url": "https://api.github.com/users/mwiebe/orgs", "repos_url": "https://api.github.com/users/mwiebe/repos", "events_url": "https://api.github.com/users/mwiebe/events{/privacy}", "received_events_url": "https://api.github.com/users/mwiebe/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "", "commit_id": "3c64da2a62d05300c21b04bb885fc934e92a0dd7", "state": "approved", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627791749", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1627791749"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-14T21:40:47Z", "updated_at": "2023-09-14T21:40:47Z", "author_association": "CONTRIBUTOR", "event": "reviewed"}}
{"time": "2023-09-15T14:36:03+00:00", "type": "timeline:labeled", "payload": {"id": 10384257027, "node_id": "LE_lADOKNhT9c5xC7pazwAAAAJq8zAD", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10384257027", "actor": {"login": "jusiskin", "id": 56369778, "node_id": "MDQ6VXNlcjU2MzY5Nzc4", "avatar_url": "https://avatars.githubusercontent.com/u/56369778?v=4", "gravatar_id": "", "url": "https://api.github.com/users/jusiskin", "html_url": "https://github.com/jusiskin", "followers_url": "https://api.github.com/users/jusiskin/followers", "following_url": "https://api.github.com/users/jusiskin/following{/other_user}", "gists_url": "https://api.github.com/users/jusiskin/gists{/gist_id}", "starred_url": "https://api.github.com/users/jusiskin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jusiskin/subscriptions", "organizations_url": "https://api.github.com/users/jusiskin/orgs", "repos_url": "https://api.github.com/users/jusiskin/repos", "events_url": "https://api.github.com/users/jusiskin/events{/privacy}", "received_events_url": "https://api.github.com/users/jusiskin/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "labeled", "commit_id": null, "commit_url": null, "created_at": "2023-09-15T14:36:03Z", "label": {"name": "enhancement", "color": "a2eeef"}, "performed_via_github_app": null}}
{"time": "2023-09-15T14:37:43+00:00", "type": "review", "payload": {"id": 1629101808, "node_id": "PRR_kwDOKNhT9c5hGh7w", "user": {"login": "ttblanchard", "id": 55503092, "node_id": "MDQ6VXNlcjU1NTAzMDky", "avatar_url": "https://avatars.githubusercontent.com/u/55503092?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ttblanchard", "html_url": "https://github.com/ttblanchard", "followers_url": "https://api.github.com/users/ttblanchard/followers", "following_url": "https://api.github.com/users/ttblanchard/following{/other_user}", "gists_url": "https://api.github.com/users/ttblanchard/gists{/gist_id}", "starred_url": "https://api.github.com/users/ttblanchard/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ttblanchard/subscriptions", "organizations_url": "https://api.github.com/users/ttblanchard/orgs", "repos_url": "https://api.github.com/users/ttblanchard/repos", "events_url": "https://api.github.com/users/ttblanchard/events{/privacy}", "received_events_url": "https://api.github.com/users/ttblanchard/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "", "state": "APPROVED", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1629101808", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "author_association": "CONTRIBUTOR", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1629101808"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-15T14:37:43Z", "commit_id": "3c64da2a62d05300c21b04bb885fc934e92a0dd7"}}
{"time": "2023-09-15T14:37:43+00:00", "type": "timeline:reviewed", "payload": {"id": 1629101808, "node_id": "PRR_kwDOKNhT9c5hGh7w", "user": {"login": "ttblanchard", "id": 55503092, "node_id": "MDQ6VXNlcjU1NTAzMDky", "avatar_url": "https://avatars.githubusercontent.com/u/55503092?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ttblanchard", "html_url": "https://github.com/ttblanchard", "followers_url": "https://api.github.com/users/ttblanchard/followers", "following_url": "https://api.github.com/users/ttblanchard/following{/other_user}", "gists_url": "https://api.github.com/users/ttblanchard/gists{/gist_id}", "starred_url": "https://api.github.com/users/ttblanchard/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ttblanchard/subscriptions", "organizations_url": "https://api.github.com/users/ttblanchard/orgs", "repos_url": "https://api.github.com/users/ttblanchard/repos", "events_url": "https://api.github.com/users/ttblanchard/events{/privacy}", "received_events_url": "https://api.github.com/users/ttblanchard/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "body": "", "commit_id": "3c64da2a62d05300c21b04bb885fc934e92a0dd7", "state": "approved", "html_url": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1629101808", "pull_request_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13", "_links": {"html": {"href": "https://github.com/OpenJobDescription/openjd-model-for-python/pull/13#pullrequestreview-1629101808"}, "pull_request": {"href": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/pulls/13"}}, "submitted_at": "2023-09-15T14:37:43Z", "updated_at": "2023-09-15T14:37:43Z", "author_association": "CONTRIBUTOR", "event": "reviewed"}}
{"time": "2023-09-15T14:40:30+00:00", "type": "timeline:merged", "payload": {"id": 10384303582, "node_id": "ME_lADOKNhT9c5xC7pazwAAAAJq8-Xe", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10384303582", "actor": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "merged", "commit_id": "bc3497f9ff2fb1cbf50e686e05f290092b2cda9d", "commit_url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/commits/bc3497f9ff2fb1cbf50e686e05f290092b2cda9d", "created_at": "2023-09-15T14:40:30Z", "performed_via_github_app": null}}
{"time": "2023-09-15T14:40:30+00:00", "type": "timeline:closed", "payload": {"id": 10384303604, "node_id": "CE_lADOKNhT9c5xC7pazwAAAAJq8-X0", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10384303604", "actor": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "closed", "commit_id": null, "commit_url": null, "created_at": "2023-09-15T14:40:30Z", "state_reason": null, "performed_via_github_app": null}}
{"time": "2023-09-15T14:40:33+00:00", "type": "timeline:head_ref_deleted", "payload": {"id": 10384303991, "node_id": "HRDE_lADOKNhT9c5xC7pazwAAAAJq8-d3", "url": "https://api.github.com/repos/OpenJobDescription/openjd-model-for-python/issues/events/10384303991", "actor": {"login": "ddneilson", "id": 53624638, "node_id": "MDQ6VXNlcjUzNjI0NjM4", "avatar_url": "https://avatars.githubusercontent.com/u/53624638?v=4", "gravatar_id": "", "url": "https://api.github.com/users/ddneilson", "html_url": "https://github.com/ddneilson", "followers_url": "https://api.github.com/users/ddneilson/followers", "following_url": "https://api.github.com/users/ddneilson/following{/other_user}", "gists_url": "https://api.github.com/users/ddneilson/gists{/gist_id}", "starred_url": "https://api.github.com/users/ddneilson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ddneilson/subscriptions", "organizations_url": "https://api.github.com/users/ddneilson/orgs", "repos_url": "https://api.github.com/users/ddneilson/repos", "events_url": "https://api.github.com/users/ddneilson/events{/privacy}", "received_events_url": "https://api.github.com/users/ddneilson/received_events", "type": "User", "user_view_type": "public", "site_admin": false}, "event": "head_ref_deleted", "commit_id": null, "commit_url": null, "created_at": "2023-09-15T14:40:33Z", "performed_via_github_app": null}}