Skip to content

Commit eb80470

Browse files
committed
Add profiling and _internal stubs (#5686)
* Add profiling stubs The purpose is to add enough data to generate the rest-api-spec. * Add _internal endpoints They are only here for the purpose of generating rest-api-spec files, so a lot of the content is empty. * Fix lint * Update tsconfig.json * Run make contrib (cherry picked from commit 5f707db) # Conflicts: # output/schema/validation-errors.json
1 parent 7efa3ea commit eb80470

25 files changed

+1491
-32
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)