
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
@map-colonies/mc-model-types
Advanced tools
this project is used to serve json schemas for input validation and generate matching types to use in typescript projects.
please note the node this was developed using node 12 and wont work with old versions of node.
the package can be installed with npm install @map-colonies/mc-model-types.
the schemas for the validation are in the package, in order to use it for validation the schema files must be accessed directly.
run npm install to install project dependencies.
to create local package tgz file run npm pack after the build
added schemas should be written according to the fallowing rule:
template property type can be overridden in generated ts type by adding "tsType" attribute (for typescript types that are not valid in json schema)
for template example see Schema/LayerMetadata.
all the yaml schemas can be validated by running npm run lint:openapi
note that due to the limitions of the linter configuration the lint will result in The field `paths` must be present on this level error for every schema file, any other error should be fixed
FAQs
json schemas for validations and generated ts models
The npm package @map-colonies/mc-model-types receives a total of 515 weekly downloads. As such, @map-colonies/mc-model-types popularity was classified as not popular.
We found that @map-colonies/mc-model-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?

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.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.