How to use the swagger-express-ts.SwaggerDefinitionConstant.Security function in swagger-express-ts

To help you get started, we’ve selected a few swagger-express-ts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github olivierlsc / swagger-express-ts / src / index.ts View on Github external
.Type.STRING,
                                example: ['Name of car is required.'],
                            },
                        },
                    },
                },
                responses: {
                    500: {},
                },
                externalDocs: {
                    url: 'My url',
                },
                securityDefinitions: {
                    apiKeyHeader: {
                        type: SwaggerDefinitionConstant.Security.Type.API_KEY,
                        in: SwaggerDefinitionConstant.Security.In.HEADER,
                        name: 'apiHeader',
                    },
                },
            },
        })
    );
});
github olivierlsc / swagger-express-ts / src / index.ts View on Github external
SwaggerDefinitionConstant.Model.Property
                                        .Type.STRING,
                                example: ['Name of car is required.'],
                            },
                        },
                    },
                },
                responses: {
                    500: {},
                },
                externalDocs: {
                    url: 'My url',
                },
                securityDefinitions: {
                    apiKeyHeader: {
                        type: SwaggerDefinitionConstant.Security.Type.API_KEY,
                        in: SwaggerDefinitionConstant.Security.In.HEADER,
                        name: 'apiHeader',
                    },
                },
            },
        })
    );
});