Browse Source

docs: updates README.md

e22m4u 6 days ago
parent
commit
90458ac9f0
1 changed files with 3 additions and 3 deletions
  1. 3 3
      README.md

+ 3 - 3
README.md

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