Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Cardellini-Labs/mongoose-schema-jsonschema
/ functions
Functions
50 in github.com/Cardellini-Labs/mongoose-schema-jsonschema
⨍
Functions
50
◇
Types & classes
0
↓ 93 callers
Function
isValid
test/suites/ajv-validation.test.js:28
↓ 8 callers
Function
readConstraint
lib/helpers.js:87
↓ 7 callers
Function
checkNullable
(typeDef)
lib/types.js:245
↓ 7 callers
Function
isValid
test/suites/validation.test.js:467
↓ 6 callers
Function
compose
(...fns)
lib/helpers.js:79
↓ 5 callers
Function
__processOptions
(t, type)
lib/types.js:134
↓ 5 callers
Function
config
lib/config.js:30
↓ 4 callers
Function
extendOptions
(mongooseTypeDef)
lib/types.js:258
↓ 3 callers
Function
__describe
(name, type)
lib/types.js:163
↓ 2 callers
Function
findPath
(obj, path)
lib/helpers.js:3
↓ 1 callers
Function
__allPaths
(schema)
lib/model.js:178
↓ 1 callers
Function
__build
(name, schema)
lib/schema.js:52
↓ 1 callers
Function
__excludedPaths
(schema, selection)
lib/model.js:116
↓ 1 callers
Function
__excludedReadonlyPaths
(schema, rules, prefix)
lib/model.js:209
↓ 1 callers
Function
__getPath
(schema, path)
lib/model.js:192
↓ 1 callers
Function
__removeRequired
* __removeRequired - removes required fields specification * * @param {Object} jsonSchema schema
lib/model.js:97
↓ 1 callers
Function
assign
(dest, src)
lib/options/fieldOptionsMapping.js:17
↓ 1 callers
Function
ensurePath
(obj, path)
lib/helpers.js:44
↓ 1 callers
Function
isRequired
(options)
lib/types.js:253
↓ 1 callers
Function
isString
lib/options/validateFieldOptMap.js:1
↓ 1 callers
Function
isTupple
lib/options/validateFieldOptMap.js:3
↓ 1 callers
Function
normailizePopulationTree
(populate)
lib/model.js:107
↓ 1 callers
Function
normalizeSelection
lib/helpers.js:89
↓ 1 callers
Function
packToObj
lib/__test__/helpers.test.js:24
↓ 1 callers
Function
setOption
lib/config.js:21
↓ 1 callers
Function
transformMatch
lib/types.js:128
Function
__delPath
* __delPath - removes path specified from the json-schema as also as * empty parent paths * * @param {object} jsonSchema description * @param {S
lib/model.js:80
Function
__populate
* __populate - enreaches jsonSchema with a sub-document schemas * * @param {Object} jsonSchema jsonSchema object * @param {String|Ar
lib/model.js:45
Function
argsList
(...args)
lib/__test__/helpers.test.js:22
Function
array_jsonSchema
* array_jsonSchema - returns jsonSchema for array parameters * * @memberof mongoose.Schema.Types.SchemaArray * @memberof mongoose.Schema.Types.Docu
lib/types.js:88
Function
compose2
(f, g)
lib/helpers.js:75
Function
date_jsonSchema
* date_jsonSchema - description * * @param {type} name description * @return {type} description
lib/types.js:70
Function
double
lib/__test__/helpers.test.js:15
Function
ensureKeyValue
lib/options/fieldOptionsMapping.js:5
Function
fn
()
lib/__test__/helpers.test.js:9
Function
idX
lib/helpers.js:77
Function
map_jsonSchema
(name)
lib/types.js:31
Function
mixed_jsonSchema
* mixed_jsonSchema - returns jsonSchema for Mixed parameter * * @memberof mongoose.Schema.Types.Mixed * * @param {String} name parameter name *
lib/types.js:118
Function
model_jsonSchema
* model_jsonSchema - builds json schema for model considering * the selection and population * * if `fields` specified the method removes `required
lib/model.js:17
Function
normalizeMap
lib/options/fieldOptionsMapping.js:11
Function
objectId_jsonSchema
* objectId_jsonSchema - returns the jsonSchema for ObjectId parameters * * @memberof mongoose.Schema.Types.ObjectId * * @param {String} name the
lib/types.js:55
Function
packToArray
lib/__test__/helpers.test.js:23
Function
processFields
lib/options/fieldOptionsMapping.js:19
Function
query_jsonSchema
* query_jsonSchema - returns json schema considering the query type and options * * @return {Object} json schema
lib/query.js:10
Function
required
()
test/suites/required.test.js:11
Function
schema_jsonSchema
* schema_jsonSchema - builds the json schema based on the Mongooose schema. * if schema has been already built the method returns new deep copy * *
lib/schema.js:19
Function
simpleType_jsonSchema
* simpleType_jsonSchema - returns jsonSchema for simple-type parameter * * @memberof mongoose.Schema.Types.String * * @return {object} the js
lib/types.js:21
Function
stringOrTuple
lib/options/validateFieldOptMap.js:9
Function
sum
(a, b)
lib/__test__/helpers.test.js:14
Function
validateMap
lib/options/validateFieldOptMap.js:11