Skip to content

Export errBadJSONDoc and errBadJSONPatch errors for JSON merge patch #124

@gavinfish

Description

@gavinfish

Initial discussion at kubernetes/kubernetes#97243 (comment). When callers call jsonpatch.MergePatch() func, it is better to let them know wether the doc or patch is invalid. Export the errBadJSONDoc and errBadJSONPatch to let callers take actions when such errors occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions