Skip to content

Commit 6eed3da

Browse files
committed
fix: errata 8462 - Manager value is case exact
1 parent 98acf7f commit 6eed3da

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

doc/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Fixed
99
- Fix ``model_json_schema()`` generation for models containing :class:`~scim2_models.Reference` or :class:`~scim2_models.Path` fields. :issue:`125`
1010
- Group ``displayName`` is required. :rfc:`7643` `erratum 5368 <https://www.rfc-editor.org/errata/eid5368>`_ :issue:`123` :pr:`128`
1111
- :class:`~scim2_models.GroupMembership` ``$ref`` only references ``Group``. :rfc:`7643` `erratum 8471 <https://www.rfc-editor.org/errata/eid8471>`_
12+
- :class:`~scim2_models.Manager` ``value`` is case-exact. :rfc:`7643` `erratum 8472 <https://www.rfc-editor.org/errata/eid8472>`_
1213

1314
[0.6.2] - 2026-01-25
1415
--------------------

samples/rfc7643-8.7.1-schema-enterprise_user.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"multiValued": false,
7373
"description": "The id of the SCIM resource representing the User's manager. REQUIRED.",
7474
"required": true,
75-
"caseExact": false,
75+
"caseExact": true,
7676
"mutability": "readWrite",
7777
"returned": "default",
7878
"uniqueness": "none"

scim2_models/resources/enterprise_user.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from pydantic import Field
55

6+
from ..annotations import CaseExact
67
from ..annotations import Mutability
78
from ..annotations import Required
89
from ..attributes import ComplexAttribute
@@ -15,7 +16,7 @@
1516

1617

1718
class Manager(ComplexAttribute):
18-
value: Annotated[str | None, Required.true] = None
19+
value: Annotated[str | None, Required.true, CaseExact.true] = None
1920
"""The id of the SCIM resource representing the User's manager."""
2021

2122
ref: Annotated[ # type: ignore[type-arg]

tests/test_dynamic_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ def test_make_enterprise_user_model_from_schema(load_sample):
13861386
== "The id of the SCIM resource representing the User's manager. REQUIRED."
13871387
)
13881388
assert Manager.get_field_annotation("value", Required) == Required.true
1389-
assert Manager.get_field_annotation("value", CaseExact) == CaseExact.false
1389+
assert Manager.get_field_annotation("value", CaseExact) == CaseExact.true
13901390
assert Manager.get_field_annotation("value", Mutability) == Mutability.read_write
13911391
assert Manager.get_field_annotation("value", Returned) == Returned.default
13921392
assert Manager.get_field_annotation("value", Uniqueness) == Uniqueness.none

0 commit comments

Comments
 (0)