From 2c3f3a8b82148065d28befa7c7ff7652baf68a07 Mon Sep 17 00:00:00 2001 From: Roberto Polli Date: Fri, 2 Apr 2021 10:44:35 +0200 Subject: [PATCH] Update paths.yml --- rules/paths.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rules/paths.yml b/rules/paths.yml index 89eb51e6..711cef0e 100644 --- a/rules/paths.yml +++ b/rules/paths.yml @@ -41,6 +41,16 @@ rules: - it description: |- "/status" schema is not a Problem object. + + It is possible to reuse the [schema provided here](https://github.com/teamdigitale/openapi/blob/master/docs/schemas/problem.yaml), + extend it or reference it. + + ``` + schemas: + Problem: + $ref: "https://teamdigitale.github.io/openapi/0.0.7/definitions.yaml#/schemas/Problem" + ``` + message: |- {{error}} {{path}} severity: warn