feat: Forbid bulkId field#143
Closed
NaqGuug wants to merge 543 commits into
Closed
Conversation
UnionType does not exist in Python 3.9
For some reasons list["Attribute"] is not valid in Python 3.10- but List["Attribute"] is.
This reverts commit 5cfdf0a. This was not compatible with Pydantic 2.10
…ns (python-scim#137) Move immutable field validation from parse-time to runtime in patch(), where the resource instance is available. This aligns with RFC 7644 §3.5.2 which allows adding a value to an immutable attribute only if it had no previous value, and tolerates no-op operations (remove on unset fields, replace with identical value).
…n-scim#138) Extract public replace() method on Resource to verify that immutable fields have not been modified, per RFC 7644 §3.5.1. Deprecate the 'original' parameter of model_validate().
Pydantic-compatible Annotated markers that inject a SCIM Context during validation and serialization. Works with any framework that respects Annotated metadata.
Enforce RFC 7644 §3.5.1 PUT semantics: readOnly fields are copied from the original resource, and omitted immutable fields are preserved instead of being nulled out.
6fd5b58 to
8c1c453
Compare
Contributor
Author
|
Yeah I completely broke the history. Probably will come back to this and other bulk stuff once #146 is closed, overall performance is improved and we have better understanding how to keep the models fast with required validation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #18