MCPcopy Index your code
hub / github.com/github/docs / process

Method process

src/rest/scripts/utils/operation.js:82–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 async process() {
83 await Promise.all([
84 this.renderDescription(),
85 this.renderStatusCodes(),
86 this.renderParameterDescriptions(),
87 this.renderBodyParameterDescriptions(),
88 this.renderExampleResponseDescriptions(),
89 this.renderPreviewNotes(),
90 ])
91
92 const ajv = new Ajv()
93 const valid = ajv.validate(operationSchema, this)
94 if (!valid) {
95 console.error(JSON.stringify(ajv.errors, null, 2))
96 throw new Error('Invalid OpenAPI operation found')
97 }
98 }
99
100 getExternalDocs() {
101 return this.#operation.externalDocs

Callers

nothing calls this directly

Tested by

no test coverage detected