By Phu Huynh
Provide JSON Schema validation custom field and utilities
released May 23, 2026
npm install strapi-plugin-json-schema-validationProvide JSON Schema validation custom field and utilities
This plugin provides a custom field for JSON Schema validation in Strapi. It allows you to define a JSON Schema for a field and validates the content of that field against the defined schema.
Powered by Monaco Editor and AJV, the plugin provides a user-friendly interface for defining JSON Schemas and validating JSON data.
npm install strapi-plugin-json-schema-validationThis plugin require whitelisting strapi::security as for script-src and worker-src as follows:
// <your-strapi-project>/config/middlewares.ts
import type { Core } from '@strapi/strapi';
const config: Core.Config.Middlewares = [
'strapi::logger',
'strapi::errors',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'script-src': [
'cdn.jsdelivr.net', // Allow monaco editor from jsdelivr CDN
],
'worker-src': ["'self'", 'blob:'], // Allow workers from the same origin and eval for Web Workers for monaco editor
},
},
},
},
'strapi::cors',
'strapi::poweredBy',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];
export default config;


Support me here ![]()
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
