Skip to content

Commit

Permalink
basic version
Browse files Browse the repository at this point in the history
  • Loading branch information
arcuri82 committed Dec 26, 2024
1 parent 1f0053d commit 0d7e601
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
17 changes: 15 additions & 2 deletions wfc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,29 @@
<artifactId>jsonschema2pojo-maven-plugin</artifactId>
<version>1.2.2</version>
<configuration>
<sourceDirectory>${basedir}/src/main/resources/schemas</sourceDirectory>
<targetPackage>com.webfuzzing</targetPackage>
<sourceType>yamlschema</sourceType>
</configuration>
<executions>
<execution>
<id>report.yaml</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<sourceDirectory>${basedir}/src/main/resources/schemas/report.yaml</sourceDirectory>
<targetPackage>com.webfuzzing.commons.report</targetPackage>
</configuration>
</execution>
<!-- <execution>-->
<!-- <id></id>-->
<!-- <goals>-->
<!-- <goal>generate</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <sourceDirectory>${basedir}/src/main/resources/schemas/</sourceDirectory>-->
<!-- <targetPackage>com.webfuzzing.commons.</targetPackage>-->
<!-- </configuration>-->
<!-- </execution>-->
</executions>
</plugin>
<plugin>
Expand Down
21 changes: 19 additions & 2 deletions wfc/src/main/resources/schemas/report.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
$schema: "https://json-schema.org/draft/2020-12/schema"
$id: "TODO"
title: "Web Fuzzing Report"
description: "Schema TODO..."
type: "object"
description: "Schema Definition for Web Fuzzing Commons Reports"
type: object
properties:
schema_version:
type: string
Expand All @@ -11,7 +11,24 @@ properties:
creation_time:
type: string
format: date-time
rest_report:
$ref: "#/$def/RESTReport"
required: ["schema_version","tool_name","creation_time"]
$def:
RESTReport:
type: object
properties:
faults:
$ref: "#/$def/Faults"
required: ["faults"]

Faults:
type: object
properties:
total_number:
type: integer
min: 0
required: ["total_number"]



0 comments on commit 0d7e601

Please sign in to comment.