add example, use supermodel models as source of truth for hal and problem detail

This commit is contained in:
Zdenek Nemec
2019-11-13 07:40:38 +00:00
parent 67277a38c8
commit db6410e90f
5 changed files with 393 additions and 11 deletions

View File

@@ -72,7 +72,7 @@ rules:
function: schema
functionOptions:
schema:
$ref: ./hal.yaml
$ref: ./supermodel/adidas/api/HAL.yaml
response-error-problem: # schemes and/or produces
description: All error responses MUST be of media type `application/problem+json`
severity: error
@@ -86,7 +86,7 @@ rules:
function: schema
functionOptions:
schema:
$ref: ./problem.yaml
$ref: ./supermodel/adidas/api/ProblemDetail.yaml
request-support-json: # This will have to take into account the schemes as well as consumes parameter
description: Every request SHOULD support `application/json` media type
severity: warn