mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 05:40:19 +03:00
feat: add new demo file and improve test
This commit is contained in:
parent
fea8e2406a
commit
7243b376eb
|
@ -1,4 +1,4 @@
|
|||
openapi: 3.1.0
|
||||
openapi: 3.0.0
|
||||
servers:
|
||||
- url: //petstore.swagger.io/v2
|
||||
description: Default server
|
||||
|
@ -42,7 +42,6 @@ info:
|
|||
|
||||
version: 1.0.0
|
||||
title: Swagger Petstore
|
||||
summary: My lovely API
|
||||
termsOfService: 'http://swagger.io/terms/'
|
||||
contact:
|
||||
name: API Support
|
||||
|
@ -54,15 +53,12 @@ info:
|
|||
license:
|
||||
name: Apache 2.0
|
||||
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
|
||||
identifier: Apache 2.0
|
||||
externalDocs:
|
||||
description: Find out how to create Github repo for your OpenAPI spec.
|
||||
url: 'https://github.com/Rebilly/generator-openapi-repo'
|
||||
tags:
|
||||
- name: pet
|
||||
description: Everything about your Pets
|
||||
- name: webhooks
|
||||
description: Everything about your Webhooks
|
||||
- name: store
|
||||
description: Access to Petstore orders
|
||||
- name: user
|
||||
|
@ -80,7 +76,6 @@ x-tagGroups:
|
|||
tags:
|
||||
- pet
|
||||
- store
|
||||
- webhooks
|
||||
- name: User Management
|
||||
tags:
|
||||
- user
|
||||
|
@ -898,38 +893,6 @@ paths:
|
|||
default:
|
||||
description: successful operation
|
||||
components:
|
||||
pathItems:
|
||||
webhooks:
|
||||
put:
|
||||
summary: Get a cat details after update
|
||||
description: Get a cat details after update
|
||||
operationId: updatedCat
|
||||
tags:
|
||||
- webhooks
|
||||
requestBody:
|
||||
description: Information about cat in the system
|
||||
content:
|
||||
multipart/form-data:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Cat"
|
||||
responses:
|
||||
'200':
|
||||
description: update Cat details
|
||||
post:
|
||||
summary: Create new cat
|
||||
description: Info about new cat
|
||||
operationId: createdCat
|
||||
tags:
|
||||
- webhooks
|
||||
requestBody:
|
||||
description: Information about cat in the system
|
||||
content:
|
||||
multipart/form-data:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Cat"
|
||||
responses:
|
||||
'200':
|
||||
description: create Cat details
|
||||
schemas:
|
||||
ApiResponse:
|
||||
type: object
|
||||
|
@ -1077,8 +1040,7 @@ components:
|
|||
example: Guru
|
||||
photoUrls:
|
||||
description: The list of URL to a cute photos featuring pet
|
||||
type: [string, integer, 'null', array]
|
||||
minItems: 1
|
||||
type: array
|
||||
maxItems: 20
|
||||
xml:
|
||||
name: photoUrl
|
||||
|
@ -1092,8 +1054,7 @@ components:
|
|||
tags:
|
||||
description: Tags attached to the pet
|
||||
type: array
|
||||
exclusiveMaximum: 100
|
||||
exclusiveMinimum: 0
|
||||
minItems: 1
|
||||
xml:
|
||||
name: tag
|
||||
wrapped: true
|
||||
|
@ -1106,7 +1067,6 @@ components:
|
|||
- available
|
||||
- pending
|
||||
- sold
|
||||
default: pending
|
||||
petType:
|
||||
description: Type of a pet
|
||||
type: string
|
||||
|
@ -1227,14 +1187,14 @@ components:
|
|||
shipDate: '2018-10-19T16:46:45Z'
|
||||
status: placed
|
||||
complete: false
|
||||
webhooks:
|
||||
x-webhooks:
|
||||
newPet:
|
||||
post:
|
||||
summary: New pet
|
||||
description: Information about a new pet in the systems
|
||||
operationId: newPet
|
||||
tags:
|
||||
- webhooks
|
||||
tags:
|
||||
- pet
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
@ -1242,8 +1202,4 @@ webhooks:
|
|||
$ref: "#/components/schemas/Pet"
|
||||
responses:
|
||||
"200":
|
||||
description: Return a 200 status to indicate that the data was received successfully
|
||||
myWebhook:
|
||||
$ref: '#/components/pathItems/webhooks'
|
||||
description: Overriding description
|
||||
summary: Overriding summary
|
||||
description: Return a 200 status to indicate that the data was received successfully
|
|
@ -6,7 +6,7 @@ describe('Menu', () => {
|
|||
it('should have valid items count', () => {
|
||||
cy.get('.menu-content')
|
||||
.find('li')
|
||||
.should('have.length', 37);
|
||||
.should('have.length', 34);
|
||||
});
|
||||
|
||||
it('should sync active menu items while scroll', () => {
|
||||
|
|
|
@ -77,7 +77,6 @@ export class SchemaModel {
|
|||
|
||||
this.pointer = schemaOrRef.$ref || pointer || '';
|
||||
this.rawSchema = parser.deref(schemaOrRef);
|
||||
|
||||
this.schema = parser.mergeAllOf(this.rawSchema, this.pointer, isChild);
|
||||
|
||||
this.init(parser, isChild);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user