A Visual Studio Code extension for validating Cardano CIP-60 (Music Token Metadata Standard) JSON metadata.
- Validates metadata against CIP-60 versions 1, 2, and 3
- Real-time error reporting with detailed messages
- Enforces string length limits (64 characters)
- Validates ISO8601 duration formats
- Checks structure based on release type (Single/Multiple/Album)
- Open a JSON file containing CIP-60 metadata
- Use one of the following methods to validate:
- Press
Ctrl+Alt+V
(Cmd+Alt+V
on Mac) - Right-click and select "Validate CIP-60 Metadata"
- Open Command Palette (Ctrl+Shift+P) and type "Validate CIP-60"
- Press
The extension checks for:
- Correct metadata version format (must be integer 1, 2, or 3)
- Required fields based on version and release type
- Proper format for song durations (ISO8601)
- String length limits (max 64 characters)
- Array format for artists and genres
- Proper structure for audio file metadata
Errors are displayed in two ways:
- In-editor highlighting of problematic sections
- Detailed error messages in the Problems panel
For a version 1 Multiple release type, audio files must contain:
{
"song_title": "Track Name",
"track_number": 1,
"song_duration": "PT3M30S",
"genres": ["Genre1", "Genre2"],
"artists": ["Artist Name"]
}
- Visual Studio Code version 1.60.0 or higher
- Download the .vsix file
- In VS Code, go to Extensions
- Click "..." at the top of Extensions panel
- Select "Install from VSIX..."
- Choose the downloaded file
MIT
Issues and pull requests welcome on GitHub.