Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ocm-engine
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
svdh
ocm-engine
Commits
d21c910e
Commit
d21c910e
authored
1 year ago
by
Boyan Tsolov
Browse files
Options
Downloads
Patches
Plain Diff
test: validation pipe
parent
3b3a9239
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#66595
waiting for manual action with stages
in 28 minutes and 52 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/gateway/src/main.ts
+3
-1
3 additions, 1 deletion
apps/gateway/src/main.ts
with
3 additions
and
1 deletion
apps/gateway/src/main.ts
+
3
−
1
View file @
d21c910e
...
...
@@ -3,7 +3,7 @@
* This is only a minimal backend to get started.
*/
import
{
Logger
}
from
"
@nestjs/common
"
;
import
{
Logger
,
ValidationPipe
}
from
"
@nestjs/common
"
;
import
{
NestFactory
}
from
"
@nestjs/core
"
;
import
{
AppModule
}
from
"
./app/app.module
"
;
...
...
@@ -49,6 +49,8 @@ async function bootstrap() {
fs
.
writeFileSync
(
"
./gateway-swagger.json
"
,
JSON
.
stringify
(
document
));
SwaggerModule
.
setup
(
"
api
"
,
app
,
document
);
app
.
useGlobalPipes
(
new
ValidationPipe
());
const
port
=
gatewayConfig
.
httpPort
||
3000
;
await
app
.
listen
(
port
,
gatewayConfig
.
host
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment