Skip to content

Commit 9612836

Browse files
authored
Merge branch 'main' into offheapbytes
2 parents 915d77d + 5f707db commit 9612836

28 files changed

+1489
-56
lines changed

compiler/src/steps/validate-model.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ enum JsonEvent {
3737
array = 'array'
3838
}
3939

40-
const privateNamespaces = ['_internal', 'profiling']
41-
4240
/**
4341
* Validates the internal consistency of the model (doesn't check the json spec)
4442
*
@@ -220,11 +218,6 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma
220218
function validateEndpoint (endpoint: model.Endpoint): void {
221219
setRootContext(endpoint.name, 'request')
222220

223-
// Skip validation for internal endpoints
224-
if (privateNamespaces.some(ns => endpoint.name.startsWith(ns))) {
225-
return
226-
}
227-
228221
if (endpoint.request !== null) {
229222
const reqType = getTypeDef(endpoint.request)
230223

0 commit comments

Comments
 (0)