@intelligo.ai/object-to-schema
Advanced tools
Comparing version 1.2.2 to 1.3.0
import { mapObject } from './mapper'; | ||
import { mapObjectToSchema } from './schemaCreator'; | ||
export { mapObject, mapObjectToSchema }; | ||
import { extractExampleFromSchema } from './exampleRecordExtractor'; | ||
export { mapObject, mapObjectToSchema, extractExampleFromSchema, }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -7,2 +7,4 @@ "use strict"; | ||
exports.mapObjectToSchema = schemaCreator_1.mapObjectToSchema; | ||
var exampleRecordExtractor_1 = require("./exampleRecordExtractor"); | ||
exports.extractExampleFromSchema = exampleRecordExtractor_1.extractExampleFromSchema; | ||
//# sourceMappingURL=index.js.map |
@@ -38,3 +38,3 @@ "use strict"; | ||
? mapObjectToSchema(obj, acc) | ||
: JSON.stringify({ type: generalUtil_1.resolveType(obj).toLowerCase() }); }, schema); | ||
: JSON.stringify({ type: generalUtil_1.resolveType(obj).toLowerCase(), example: obj }); }, schema); | ||
} | ||
@@ -41,0 +41,0 @@ function simpleType(type, key, schema, value) { |
{ | ||
"name": "@intelligo.ai/object-to-schema", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
366038
42
7706