Skip to content

Commit

Permalink
Merge pull request #470 from RepreZen/task/469
Browse files Browse the repository at this point in the history
[#469] Fix Object resource template
  • Loading branch information
tfesenko committed Aug 28, 2018
2 parents b68942b + ed95151 commit 4d5b358
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions com.reprezen.swagedit.openapi3/resources/templates.xml
Expand Up @@ -54,7 +54,7 @@ email: ${contact_email}</template>
id="com.reprezen.swagedit.openapi3.templates.object_resource_template"
description="object resource template"
context="com.reprezen.swagedit.openapi3.templates.paths"
enabled="true">/${item}s/${id}:
enabled="true">/${item}s/{${id}}:
get:
description: Get an ${item} with the given ID
parameters:
Expand All @@ -70,7 +70,7 @@ email: ${contact_email}</template>
content:
application/json:
schema:
$$ref: '${itemSchema}'
$$ref: "${itemSchema}"
'404':
description: Not Found
patch:
Expand Down Expand Up @@ -128,7 +128,7 @@ email: ${contact_email}</template>
schema:
type: array
items:
$$ref: '${itemSchema}'
$$ref: "${itemSchema}"
post:
description: Create a new ${item}
requestBody:
Expand Down Expand Up @@ -159,7 +159,7 @@ email: ${contact_email}</template>
content:
application/json:
schema:
$$ref: '${itemSchema}'
$$ref: "${itemSchema}"
put:
description: Create a new ${item}
requestBody:
Expand Down Expand Up @@ -214,7 +214,7 @@ email: ${contact_email}</template>
schema:
type: array
items:
$$ref: '${itemSchema}'</template>
$$ref: "${itemSchema}"</template>

<template name="get"
id="com.reprezen.swagedit.openapi3.templates.path_get_on_object_template"
Expand All @@ -235,7 +235,7 @@ email: ${contact_email}</template>
content:
application/json:
schema:
$$ref: '${itemSchema}'
$$ref: "${itemSchema}"
'404':
description: Not Found</template>

Expand Down Expand Up @@ -465,7 +465,7 @@ properties:
description="ALL OF schema definition"
context="com.reprezen.swagedit.openapi3.templates.schema"
enabled="true">allOf:
- $$ref: '${schema1}'
- $$ref: "${schema1}"
- type: object
properties:
${name}:
Expand All @@ -476,7 +476,7 @@ properties:
description="ANY OF schema definition"
context="com.reprezen.swagedit.openapi3.templates.schema"
enabled="true">anyOf:
- $$ref: '${schema1}'
- $$ref: "${schema1}"
- type: object
properties:
${name}:
Expand All @@ -487,7 +487,7 @@ properties:
description="ONE OF schema definition"
context="com.reprezen.swagedit.openapi3.templates.schema"
enabled="true">oneOf:
- $$ref: '${schema1}'
- $$ref: "${schema1}"
- type: object
properties:
${name}:
Expand Down Expand Up @@ -544,7 +544,7 @@ items:
content:
'application/json':
schema:
$$ref: '${schema}'
$$ref: "${schema}"
responses:
'200':
description: webhook successfully processed</template>
Expand All @@ -568,11 +568,11 @@ items:
schema:
type: array
items:
$$ref: '${responseModel}'
$$ref: "${responseModel}"
default:
description: Error
content:
'text/html':
schema:
$$ref: '${errorModel}'</template>
$$ref: "${errorModel}"</template>
</templates>

0 comments on commit 4d5b358

Please sign in to comment.