---
title: "Validate schema"
method: POST
path: "/api/validate/{cgmesVersion}"
tags: ["schema-validation-from-file-rest-controller"]
---

# Validate schema

`POST /api/validate/{cgmesVersion}`

## Request

- The document declares no server URL.
- Auth: none declared

Validates the RDFS schema of a given graph file for completeness, including the profile header.

## Path parameters

- `cgmesVersion` 'V2_4_15' | 'V3_0', required

## Headers

- `Origin` string

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: The graph file to validate.

## Response `200`

OK

- ValidationReportDTO
  - `issues` ValidationIssueDTO[]
    - `kind` 'RULE' | 'INFRASTRUCTURE'
    - `message` string
    - `occurrences` IssueOccurrenceDTO[]
      - `classUUID` string, uuid
      - `keyword` string
      - `packageUUID` string, uuid
      - `schemaName` string
      - `uuid` string, uuid
      - `value` string
    - `resourceUri` string
    - `ruleId` string
    - `ruleLabel` string
    - `severity` 'ERROR' | 'WARNING' | 'INFO'
  - `valid` boolean

## Changes

- **2026-11-23** `91d142ef001a`: 1 warning, 1 info
  - removed the optional property `issues/items/occurrences/items/graphUri` from the response with the `200` status
  - added the optional property `issues/items/occurrences/items/schemaName` to the response with the `200` status
- **2026-09-29** `9434ad575f4b`: 4 info
  - added the optional property `issues/items/kind` to the response with the `200` status
  - added the optional property `issues/items/occurrences` to the response with the `200` status
  - added the optional property `issues/items/ruleId` to the response with the `200` status
  - added the optional property `issues/items/ruleLabel` to the response with the `200` status
- **2026-09-10** `3a79112398f3`: 1 breaking, 1 info
  - removed the media type `application/json` from the request body
  - added the media type `multipart/form-data` to the request body

[Operation history](https://skmtc.dev/soptim/apis/rdfarchitect-backend/changes/api/validate/:cgmesVersion/post.md)

---

[API](https://skmtc.dev/soptim/apis/rdfarchitect-backend.md) - [All operations](https://skmtc.dev/soptim/apis/rdfarchitect-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/soptim/apis/rdfarchitect-backend/revisions/21e6477d8dd8?raw)
