- fix : invalid syntax (ref) for phpstorm openapi plugin (was ok with swaggerhub ?)

This commit is contained in:
jygaulier
2020-08-17 12:21:17 +02:00
parent 236a4a20ac
commit 4d4b163def
2 changed files with 21 additions and 18 deletions

View File

@@ -39,12 +39,10 @@ paths:
servers: servers:
- url: 'https://alpha.preprod.alchemyasp.com/api/v1' - url: 'https://alpha.preprod.alchemyasp.com/api/v1'
responses: responses:
'200': 200:
description: successful operation description: successful operation
'400': default:
description: Any other error description: Any error
'404':
description: Record not found
'/records/{base_id}': '/records/{base_id}':
post: post:
@@ -79,8 +77,14 @@ paths:
allOf: allOf:
- $ref: schemas.yaml#/RecordPatch - $ref: schemas.yaml#/RecordPatch
responses: responses:
200:
description: ok
content:
application/json:
schema:
$ref: schemas.yaml#/ApiResponse_record
default: default:
$ref: responses.yaml#/record_response $ref: 'responses.yaml#/error_response'
security: security:
- api_key: [] - api_key: []
'/records/{sbas_id}/{record_id}': '/records/{sbas_id}/{record_id}':
@@ -104,5 +108,13 @@ paths:
schema: schema:
$ref: schemas.yaml#/ID $ref: schemas.yaml#/ID
responses: responses:
200:
description: ok
content:
application/json:
schema:
$ref: schemas.yaml#/ApiResponse_record
404:
description: Record not found
default: default:
$ref: responses.yaml#/record_response $ref: 'responses.yaml#/error_response'

View File

@@ -1,11 +1,2 @@
record_response: error_response:
'200': description: Any (other) error
description: successful operation
content:
application/json:
schema:
$ref: schemas.yaml#/ApiResponse_record
'400':
description: Any other error
'404':
description: Record not found