This is a Vue 3 application designed to validate VDA5050 messages across different versions (1.1, 2.0, and 2.1). The app supports multiple topics and provides detailed feedback on validation errors, including missing fields, incorrect types, and schema violations.
- Automatic Topic Detection: Automatically detects the topic of the provided VDA5050 message.
- Manual Topic Selection: Allows users to manually select specific topics for validation.
- Multi-Version Support: Validates messages for VDA5050 versions:
- 1.1
- 2.0
- 2.1
- Detailed Error Reporting: Displays errors with:
- Path to the incorrect field
- Reason for validation failure (e.g., missing property, incorrect type)
- User-Friendly Interface: Clear and organized layout to display JSON validation results.
Follow these steps to set up the project locally:
-
Clone the Repository:
git clone https://github.com/bekirbostanci/vda5050_validator.git cd vda5050-validator
-
Install Dependencies: Make sure you have Node.js and npm installed, then run:
npm install
-
Run the App: Start the development server:
npm run dev
The app will be accessible at
http://localhost:5173/
. -
Build for Production: To build the app for deployment:
npm run build
The compiled output will be in the
dist/
folder.
- Paste JSON Data: Paste your VDA5050 message JSON into the input area.
- Validate: Click the Validate button.
- View Results: Review the validation errors (if any) in the Error Details section:
- Missing Fields: Displays required fields that are absent.
- Type Errors: Shows fields with incorrect data types.
- Path to Field: Pinpoints the exact JSON path for the error.
- Missing Required Property:
must have required property 'driving' Path: #/required
- Type Error:
must be integer Path: #/properties/edgeStates/items/properties/sequenceId/type
- state
- order
- instant actions
- factsheet
- connection
- visualization
The app allows users to select topics explicitly or automatically detect them.
- Vue 3: Frontend framework
- Vite: Fast build tool
- AJV: Json validator
This project is licensed under the MIT License.