Socket
Book a DemoInstallSign in
Socket

@mia-platform/console-types

Package Overview
Dependencies
Maintainers
4
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mia-platform/console-types

This repo contains the main types of the Mia-Platform Console. It should be used to develop a Console plugin in typescript.

latest
Source
npmnpm
Version
0.39.4
Version published
Maintainers
4
Created
Source

Types

This repo contains the main types of the Mia-Platform Console. It should be used to develop a Console plugin in typescript.

Plugins and extensions

This lib exports the schema and types of Console.

It uses the VALIDATION_ERROR_ID to add errorId to the schema, which allows for use better error message than default.

Ajv Plugins Console errors

To simplify the fields management, since they are not valid json-schema definitions, it is created an ajv plugins which define the keyword inside Ajv. To use it:

const ajv = new Ajv()
addConsoleErrors(ajv)

const schema = {}
const validate = ajv.compile(schema)

Fastify transform schema

This transform schema function works for @fastify/swagger plugin. It removes VALIDATION_ERROR_ID field, which is not a correct oas definition.

FAQs

Package last updated on 01 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts