Skip to content

Conversation

@mfleader
Copy link
Collaborator

@mfleader mfleader commented Aug 5, 2025

Simplify field mutator implementation by leveraging jsonpointer v0.21.2 fix for nil intermediate values during field mutation. Replaces complex manual traversal with direct jsonpointer calls and streamlined path creation logic. Improved error handling through jsonpointer's improved error messages.

Previously worked around: panic: reflect: call of reflect.Value.Type on zero Value.

@mfleader mfleader added bug Something isn't working exciting stuff! Just for Matt labels Aug 5, 2025
@mfleader mfleader self-assigned this Aug 5, 2025
@mfleader mfleader requested review from leseb and removed request for leseb August 5, 2025 21:08
@mfleader mfleader force-pushed the fix-jsonpointer-usage branch from 9ef2a27 to e5ac5dd Compare August 5, 2025 22:06
@mfleader mfleader marked this pull request as ready for review August 5, 2025 22:31
Copy link

@alinaryan alinaryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@leseb leseb requested a review from rhdedgar August 8, 2025 09:27
@mfleader mfleader force-pushed the fix-jsonpointer-usage branch from e5ac5dd to 1142c63 Compare August 11, 2025 14:21
Uses go-openapi/jsonpointer@v0.21.2 fix to improve handling of intermediate nil values.

Signed-off-by: Matthew F Leader <mleader@redhat.com>
@mfleader mfleader force-pushed the fix-jsonpointer-usage branch from 1142c63 to 03ac1ad Compare August 11, 2025 14:25
Copy link
Collaborator

@rhdedgar rhdedgar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good here, thanks!

@mergify mergify bot merged commit b11bd68 into llamastack:main Aug 11, 2025
6 checks passed
VaishnaviHire pushed a commit to VaishnaviHire/llama-stack-k8s-operator that referenced this pull request Aug 19, 2025
…lamastack#136)

Simplify field mutator implementation by leveraging jsonpointer v0.21.2 fix for nil intermediate values during field mutation. Replaces complex manual traversal with direct jsonpointer calls and streamlined path creation logic. Improved error handling through jsonpointer's improved error messages.

Previously worked around: panic: reflect: call of reflect.Value.Type on zero Value.

Approved-by: rhdedgar
(cherry picked from commit b11bd68)
VaishnaviHire pushed a commit to VaishnaviHire/llama-stack-k8s-operator that referenced this pull request Sep 18, 2025
…lamastack#136)

Simplify field mutator implementation by leveraging jsonpointer v0.21.2 fix for nil intermediate values during field mutation. Replaces complex manual traversal with direct jsonpointer calls and streamlined path creation logic. Improved error handling through jsonpointer's improved error messages.

Previously worked around: panic: reflect: call of reflect.Value.Type on zero Value.

Approved-by: rhdedgar
(cherry picked from commit b11bd68)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working exciting stuff! Just for Matt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants