-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(element-template-generator): accept yaml content as parameter in…
… template generator (#3242) * feat(element-template-generator): accept yaml content as parameter in template generator * feat(element-template-generator): refactor
- Loading branch information
1 parent
3fc1c1f
commit 81980ac
Showing
8 changed files
with
174 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
element-template-generator/openapi-parser/src/test/resources/example.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Sample API | ||
description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML. | ||
version: 0.1.9 | ||
servers: | ||
- url: http://api.example.com/v1 | ||
description: Optional server description, e.g. Main (production) server | ||
- url: http://staging-api.example.com | ||
description: Optional server description, e.g. Internal staging server for testing | ||
paths: | ||
/users: | ||
get: | ||
summary: Returns a list of users. | ||
description: Optional extended description in CommonMark or HTML. | ||
responses: | ||
'200': # status code | ||
description: A JSON array of user names | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
element-template-generator/postman-collections-parser/src/test/resources/example.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
info: | ||
_postman_id: 431257b5-df1f-4a84-863a-46d2aa3ae731 | ||
name: TEST | ||
schema: https://schema.getpostman.com/json/collection/v2.1.0/collection.json | ||
_exporter_id: '25378986' | ||
item: | ||
- name: v1 | ||
item: | ||
- name: New Request | ||
request: | ||
method: GET | ||
header: [] | ||
response: [] | ||
- name: v2 | ||
item: | ||
- name: New Request | ||
request: | ||
method: GET | ||
header: [] | ||
response: [] | ||
- name: test | ||
request: | ||
method: GET | ||
header: [] | ||
response: [] |