e22m4u 1 неделя назад
Родитель
Сommit
624730160b
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -135,7 +135,7 @@ builder.defineOperation({
         content: {
           'application/json': {
             schema: oaRef('User'), // <= ссылка на компонент
-            // утилита "oaRef" создаст объект
+            // утилита "oaRef" создаст объект:
             // {"$ref": "#/components/schemas/User"}
           },
         },
@@ -217,7 +217,7 @@ builder.defineOperation({
     requestBody: {
       description: 'Data for the new user',
       required: true,
-      content: oaJsonContent(oaRef('UserInput')), // <= ссылка на компонент
+      content: oaJsonContent(oaRef('UserInput')),
       // "content": {
       //   "application/json": {
       //     "schema": {
@@ -229,7 +229,7 @@ builder.defineOperation({
     responses: {
       201: {
         description: 'User created',
-        content: oaJsonContent(oaRef('User')), // <= ссылка на компонент
+        content: oaJsonContent(oaRef('User')),
         // "content": {
         //   "application/json": {
         //     "schema": {