Skip to content

Commit cacdfb9

Browse files
committed
starting with auth
1 parent 1c0ddf9 commit cacdfb9

2 files changed

Lines changed: 36 additions & 3 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
$schema: "https://json-schema.org/draft/2020-12/schema"
2+
$id: "https://github.com/WebFuzzing/Commons/blob/master/src/main/resources/wfc/schemas/auth.yaml"
3+
title: "Web Fuzzing Commons Authentication"
4+
description: "Schema Definition for Web Fuzzing Commons Authentication"
5+
type: object
6+
properties:
7+
schema_version:
8+
type: string
9+
description: "The schema version of WFC needed to use to validate and process this document."
10+
auth:
11+
description: "List of authentication information for different users."
12+
type: array
13+
items:
14+
$ref: "#/$def/AuthenticationInfo"
15+
authTemplate:
16+
description: "Optional authentication information template. This is used to avoid duplication in the auth list. \
17+
Entries defined in the template will be applied to all elements in the auth list that do not specify them."
18+
allOf:
19+
- $ref: "#/$def/AuthenticationInfo"
20+
- type: object
21+
configs:
22+
description: "Optional map of configuration parameters, in the form key:value strings. \
23+
This can be useful to provide extra custom information in the same configuration file, \
24+
independently of the defined authentication information."
25+
type: object
26+
additionalProperties:
27+
type: string
28+
required: ["auth"]
29+
$def:
30+
AuthenticationInfo:
31+
type: object
32+
33+
34+

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
$schema: "https://json-schema.org/draft/2020-12/schema"
2-
#https://www.learnjsonschema.com/2020-12/core/id/
3-
$id: "TODO"
4-
title: "Web Fuzzing Report"
2+
$id: "https://github.com/WebFuzzing/Commons/blob/master/src/main/resources/wfc/schemas/report.yaml"
3+
title: "Web Fuzzing Commons Report"
54
description: "Schema Definition for Web Fuzzing Commons Reports"
65
type: object
76
properties:

0 commit comments

Comments
 (0)