vovk 3.0.0-draft.179 → 3.0.0-draft.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -110,7 +110,9 @@ function openAPIToSchema({ openAPIObject, getHandlerInfo = defaultGetHandlerInfo
|
|
|
110
110
|
: null;
|
|
111
111
|
// TODO how to utilize ReferenceObject?
|
|
112
112
|
const body = operation.requestBody?.content['application/json']?.schema ?? null;
|
|
113
|
-
const output = operation.responses?.['200']?.content['application/json']?.schema ??
|
|
113
|
+
const output = operation.responses?.['200']?.content?.['application/json']?.schema ??
|
|
114
|
+
operation.responses?.['201']?.content?.['application/json']?.schema ??
|
|
115
|
+
null;
|
|
114
116
|
segment.controllers[rpcModuleName].handlers[handlerName] = {
|
|
115
117
|
httpMethod: method.toUpperCase(),
|
|
116
118
|
path,
|
|
@@ -110,7 +110,9 @@ function openAPIToSchema({ openAPIObject, getHandlerInfo = defaultGetHandlerInfo
|
|
|
110
110
|
: null;
|
|
111
111
|
// TODO how to utilize ReferenceObject?
|
|
112
112
|
const body = operation.requestBody?.content['application/json']?.schema ?? null;
|
|
113
|
-
const output = operation.responses?.['200']?.content['application/json']?.schema ??
|
|
113
|
+
const output = operation.responses?.['200']?.content?.['application/json']?.schema ??
|
|
114
|
+
operation.responses?.['201']?.content?.['application/json']?.schema ??
|
|
115
|
+
null;
|
|
114
116
|
segment.controllers[rpcModuleName].handlers[handlerName] = {
|
|
115
117
|
httpMethod: method.toUpperCase(),
|
|
116
118
|
path,
|