Registry / serialization / isomor-json-schema-generator

isomor-json-schema-generator

JSON →
library3.0.0jsnpmunverified

isomor-json-schema-generator version 3.0.0 is a library for Isomor, a framework that abstracts frontend-backend layers by automatically generating API layers from a single codebase, eliminating the need for REST or GraphQL. It uses Babel transpilation to separate client and server code, with strong TypeScript support. This package specifically handles JSON schema generation for Isomor. Release cadence is tied to Isomor; actively maintained. Key differentiator: seamless integration with Isomor's automatic layer generation.

npm install isomor-json-schema-generator
INSTALL
IMPORT
SIG · ISOMOR-JSON-SCHEMA
I
isomor-json-schema-generator
serializationjavascriptv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import generateSchema from 'isomor-json-schema-generator'
const generateSchema = require('isomor-json-schema-generator')
Package is ESM-only; require() will fail.
generateSchema
import { generateSchema } from 'isomor-json-schema-generator'
import generateSchema from 'isomor-json-schema-generator'
Default export is not named; named export 'generateSchema' is correct if package provides it. Verify actual exports.
SchemaGenerator
import { SchemaGenerator } from 'isomor-json-schema-generator'
Possible class export; check documentation.

Shows how to import and use generateSchema to create a JSON schema from a source directory.

import { generateSchema } from 'isomor-json-schema-generator'; import { join } from 'path'; const schema = generateSchema({ source: join(process.cwd(), 'src', 'api'), output: join(process.cwd(), 'schema.json'), }); console.log('Schema generated at:', schema);
isomor-json-schema-generator --version
Debug
Known issues
breakingESM-only: require will cause runtime error.
fix
Use import syntax instead of require.
affects: >=3.0.0
gotchaDefault export may not exist; use named exports.
fix
Verify named exports by reading package documentation or index.d.ts.
affects: >=3.0.0
breakingNode version <11 not supported.
fix
Upgrade Node to version 11 or higher.
affects: >=3.0.0
deprecatedDeprecated as of Isomor v3? Check release notes.
fix
Use isomor's built-in schema generation if available.
affects: >=3.0.0
Errors
Common errors & fixes
SyntaxError: Cannot use import statement outside a module
Using require() or running without ESM support.
fix
Add "type": "module" to package.json or use .mjs extension.
Error: Cannot find module 'isomor-json-schema-generator'
Package not installed or incorrectly imported.
fix
Run 'npm install isomor-json-schema-generator' and ensure correct import path.
TypeError: generateSchema is not a function
Using default import when package only exports named function.
fix
Use named import: import { generateSchema } from 'isomor-json-schema-generator'
Upgrade
Version history
3.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
isomor-json-schema-generator — npm install isomor-json-schema-generator · libregistry