Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko committed Mar 9, 2024
1 parent 1f6a34c commit c30c1fe
Show file tree
Hide file tree
Showing 31 changed files with 102 additions and 5 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"require-dev": {
"doctrine/dbal": "^3.4",
"laravel/pint": "^v1.1.0",
"nunomaduro/collision": "^5.0|^v6.0|^7.0|^8.0",
"nunomaduro/collision": "^5.0|^v6.0|^8.0",
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-laravel": "^2.3",
"phpunit/phpunit": "^10.5",
"spatie/pest-plugin-snapshots": "^2.1"
"pestphp/pest": "^1.21|^2.34",
"pestphp/pest-plugin-laravel": "^1.2|^2.3",
"phpunit/phpunit": "^9.5|^10.5",
"spatie/pest-plugin-snapshots": "^1.1|^2.1"
},
"autoload": {
"psr-4": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
openapi: 3.1.0
info:
title: Laravel
version: 0.0.1
servers:
- { url: 'http://localhost/api' }
paths:
/test: { get: { operationId: fooTestTwo.index, tags: [Foo_TestTwo], responses: { 500: { description: '', content: { application/json: { schema: { type: object, properties: { error: { type: object, properties: { msg: { type: string }, code: { type: integer } }, required: [msg, code] } }, required: [error] } } } } } } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
openapi: 3.1.0
info:
title: Laravel
version: 0.0.1
servers:
- { url: 'http://localhost/api' }
paths:
/test: { get: { operationId: fooTest.index, tags: [Foo_Test], responses: { 204: { description: 'No content', content: { application/json: { } } } } } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: array
items:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: object
additionalProperties:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: array
items:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: array
items:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type: object
properties:
- { type: string }
- { type: string }
required:
- '0'
- '1'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: array
items:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: object
additionalProperties:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: array
items:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: object
properties:
test: { type: string }
wow: { type: string }
required:
- test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: object
properties:
wow: { type: string }
required:
- wow
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type: array
items:
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: boolean
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: boolean
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: number
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: boolean
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: number
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: number
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: integer
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: integer
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: 'null'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: object
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type: boolean
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type: string
enum:
- foo
- bar
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
anyOf:
- { type: string }
- { type: string, enum: [foo, bar] }
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
openapi: 3.1.0
info:
title: Laravel
version: 0.0.1
servers:
- { url: 'http://localhost/api' }
paths:
/test: { get: { operationId: validationFacadeRulesDocumentingTest.index, tags: [ValidationFacadeRulesDocumenting_Test], parameters: [{ name: content, in: query, required: true, schema: { type: string, enum: [wow] } }], responses: { 200: { description: '', content: { application/json: { schema: { type: string } } } } } } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
openapi: 3.1.0
info:
title: Laravel
version: 0.0.1
servers:
- { url: 'http://localhost/api' }
paths:
/test: { get: { operationId: validationRulesDocumentingTest.index, tags: [ValidationRulesDocumenting_Test], parameters: [{ name: content, in: query, required: true, schema: { type: string, enum: [wow] } }], responses: { 200: { description: '`ValidationRulesDocumenting_TestResource`', content: { application/json: { schema: { type: object, properties: { data: { $ref: '#/components/schemas/ValidationRulesDocumenting_TestResource' } }, required: [data] } } } }, 422: { $ref: '#/components/responses/ValidationException' } } } }
components:
schemas: { ValidationRulesDocumenting_TestResource: { type: object, properties: { id: { type: integer, example: 1 } }, required: [id], title: ValidationRulesDocumenting_TestResource } }
responses: { ValidationException: { description: 'Validation error', content: { application/json: { schema: { type: object, properties: { message: { type: string, description: 'Errors overview.' }, errors: { type: object, description: 'A detailed description of each field that failed validation.', additionalProperties: { type: array, items: { type: string } } } }, required: [message, errors] } } } } }

0 comments on commit c30c1fe

Please sign in to comment.