Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@akijakya
Copy link
Member

@akijakya akijakya commented Oct 10, 2025

Before

{
  "errors": [
    {
      "error": "name_unknown",
      "message": "Unknown \"name\" value; no class is defined for theorem_provingdfdf.",
      "value": "theorem_provingdfdf",
      "attribute": "name",
      "attribute_path": "name"
    },
    {
      "error": "id_unknown",
      "message": "Unknown \"id\" value; no class is defined for 107034.",
      "value": 107034,
      "attribute": "id",
      "attribute_path": "id"
    },
    {
      "error": "attribute_required_missing",
      "message": "Required attribute \"id or name\" is missing.",
      "attribute": "id or name",
      "attribute_path": "id or name"
    }
  ],
  "warnings": [],
  "error_count": 3,
  "warning_count": 0
}

After

{
  "errors": [
    {
      "error": "name_unknown",
      "message": "Unknown \"name\" value; no class is defined for theorem_provingdfdf.",
      "value": "theorem_provingdfdf",
      "attribute": "name",
      "attribute_path": "skills[3]"
    },
    {
      "error": "id_unknown",
      "message": "Unknown \"id\" value; no class is defined for 107034.",
      "value": 107034,
      "attribute": "id",
      "attribute_path": "skills[7]"
    },
    {
      "error": "attribute_required_missing",
      "message": "Required attribute \"domains[1]\" is missing.",
      "attribute": "id or name",
      "attribute_path": "domains[1]"
    }
  ],
  "warnings": [],
  "error_count": 3,
  "warning_count": 0
}

Fixes #328

@akijakya akijakya requested a review from a team as a code owner October 10, 2025 19:38
@github-actions
Copy link

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedOct 10, 2025, 7:38 PM

@akijakya akijakya merged commit 47031cd into main Oct 15, 2025
10 checks passed
@akijakya akijakya deleted the feat/class-validator-error-msg branch October 15, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhanced error message for unknown classes

3 participants