Skip to content

Commit 9f94a67

Browse files
committed
Remove params from schema
1 parent 1726cc7 commit 9f94a67

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

gbfs-validator-java-api/src/main/java/org/entur/gbfs/validator/api/handler/ValidateApiDelegateHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private List<GbfsFile> mapFiles(Map<String, FileValidationResult> files, Map<Str
121121
GbfsFile file = new GbfsFile();
122122
file.setName(fileName);
123123
file.setUrl(urlMap.get(fileName));
124-
//file.setSchema(fileValidationResult.schema());
124+
file.setSchema(fileValidationResult.schema());
125125
file.setVersion(fileValidationResult.version());
126126

127127
// The discovery file itself has no language, and is listed once per system
@@ -138,7 +138,6 @@ private List<FileError> mapFileErrors(List<FileValidationError> errors) {
138138
mapped.setMessage(error.message());
139139
mapped.setInstancePath(error.violationPath());
140140
mapped.setSchemaPath(error.schemaPath());
141-
//mapped.setParams(error.); // TODO no source?
142141
mapped.setKeyword(error.keyword());
143142
return mapped;
144143
}).toList();

gbfs-validator-java-api/src/main/resources/public/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ components:
8282
type: string
8383
example: "https://token.example.com"
8484

85-
# Q: Is this general enough for all json-schema errors?
8685
FileError:
8786
type: object
8887
properties:
@@ -102,11 +101,6 @@ components:
102101
type: string
103102
description: |
104103
Human-readable message describing the error.
105-
params:
106-
type: object
107-
additionalProperties: true
108-
description: |
109-
Dynamic properties specific to the validation keyword (e.g., allowedValues for 'enum').
110104
required:
111105
- keyword
112106
- instancePath

0 commit comments

Comments
 (0)