Skip to main content

generateServiceSchema

@webda/content-mapper


Function: generateServiceSchema()

generateServiceSchema(declaration, options): JSONSchema7 | undefined

Defined in: packages/content-mapper/src/schema/service.ts:88

Generate a service's Schema entry.

Parameters​

declaration​

ClassDeclaration

the service class

options​

ServiceSchemaOptions

checker, project and post-processing switches

Returns​

JSONSchema7 | undefined

the schema, or undefined when the service declares no parameters