diff --git a/src/OpenApi.vue b/src/OpenApi.vue index bcc2b50..48a5994 100644 --- a/src/OpenApi.vue +++ b/src/OpenApi.vue @@ -55,9 +55,9 @@

Parameters

- +

Responses

- +
@@ -116,6 +116,41 @@ + + Fields + + + + + + Name + Description + Type + Values + + + + + + {{name}} + + {{field.schema.type}} + {{field.schema.items.type}} array + {{field.schema.enum.join(', ')}} + +
{{(field.schema.items.enum || []).join(', ')}}
+
+ +
+
+
+
+ + + ok + +
+ @@ -171,6 +206,7 @@ export default { selectedEntry: null, currentSchema: ' ', currentExamples: {}, + currentFields: {}, currentRequest: { contentType: '', body: '', @@ -242,6 +278,10 @@ export default { this.currentExamples = examples this.$refs.examplesDialog.open() }, + openFieldsDialog(fields) { + this.currentFields = fields + this.$refs.fieldsDialog.open() + }, request() { this.currentResponse = null fetch(this.currentRequest, this.selectedEntry, this.api).then(res => { diff --git a/src/ResponsesTable.vue b/src/ResponsesTable.vue index b1bcbc1..9793b3b 100644 --- a/src/ResponsesTable.vue +++ b/src/ResponsesTable.vue @@ -6,6 +6,7 @@ Response Type Schema + Headers Examples @@ -14,19 +15,28 @@ {{code}} - + {{content}} - + + open_in_new + + + + open_in_new + + + open_in_new + @@ -36,7 +46,7 @@ import marked from 'marked' export default { - props: [ 'selectedEntry', 'openSchemaDialog', 'openExamplesDialog' ], + props: [ 'selectedEntry', 'openSchemaDialog', 'openExamplesDialog', 'openFieldsDialog'], methods: { marked, examples(response) {