Skip to content

Commit 7840b15

Browse files
committed
revert "required" for header params
1 parent 4b686af commit 7840b15

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/resources/wfc/schemas/auth.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## In the past, YAML had native support for this in the form of templates, but this is no longer the case.
55
## A concrete side-effect of this issue is that we cannot use "required" constraints, as those would be applied
66
## to the document as it is, before the template resolution.
7-
## A pragmatic compromise is to avoid "required", and rather use "x-required".
8-
## The validation of required constraints would then be delegated to whatever is used to resolve the templates.
7+
## A pragmatic compromise is to avoid "required" for fields that can be merged, and rather use "x-required".
8+
## The validation of x-required constraints would then be delegated to whatever is used to resolve the templates.
99
#####################################################################################################################
1010
$schema: "https://json-schema.org/draft/2020-12/schema"
1111
$id: "https://github.com/WebFuzzing/Commons/blob/master/src/main/resources/wfc/schemas/auth.yaml"
@@ -54,7 +54,7 @@ $defs:
5454
value:
5555
description: "The value of the header"
5656
type: string
57-
x-required: ["name","value"]
57+
required: ["name","value"]
5858
AuthenticationInfo:
5959
type: object
6060
properties:

0 commit comments

Comments
 (0)